#define pr_fmt(fmt) …
#include <net/tcp_states.h>
#include <linux/nfc.h>
#include <linux/export.h>
#include <linux/kcov.h>
#include "nfc.h"
static struct nfc_sock_list raw_sk_list = …;
static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk)
{ … }
static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk)
{ … }
static void rawsock_write_queue_purge(struct sock *sk)
{ … }
static void rawsock_report_error(struct sock *sk, int err)
{ … }
static int rawsock_release(struct socket *sock)
{ … }
static int rawsock_connect(struct socket *sock, struct sockaddr *_addr,
int len, int flags)
{ … }
static int rawsock_add_header(struct sk_buff *skb)
{ … }
static void rawsock_data_exchange_complete(void *context, struct sk_buff *skb,
int err)
{ … }
static void rawsock_tx_work(struct work_struct *work)
{ … }
static int rawsock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
{ … }
static int rawsock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
int flags)
{ … }
static const struct proto_ops rawsock_ops = …;
static const struct proto_ops rawsock_raw_ops = …;
static void rawsock_destruct(struct sock *sk)
{ … }
static int rawsock_create(struct net *net, struct socket *sock,
const struct nfc_protocol *nfc_proto, int kern)
{ … }
void nfc_send_to_raw_sock(struct nfc_dev *dev, struct sk_buff *skb,
u8 payload_type, u8 direction)
{ … }
EXPORT_SYMBOL(…);
static struct proto rawsock_proto = …;
static const struct nfc_protocol rawsock_nfc_proto = …;
int __init rawsock_init(void)
{ … }
void rawsock_exit(void)
{ … }