linux/net/phonet/datagram.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * File: datagram.c
 *
 * Datagram (ISI) Phonet sockets
 *
 * Copyright (C) 2008 Nokia Corporation.
 *
 * Authors: Sakari Ailus <[email protected]>
 *          Rémi Denis-Courmont
 */

#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/socket.h>
#include <asm/ioctls.h>
#include <net/sock.h>

#include <linux/phonet.h>
#include <linux/export.h>
#include <net/phonet/phonet.h>

static int pn_backlog_rcv(struct sock *sk, struct sk_buff *skb);

/* associated socket ceases to exist */
static void pn_sock_close(struct sock *sk, long timeout)
{}

static int pn_ioctl(struct sock *sk, int cmd, int *karg)
{}

/* Destroy socket. All references are gone. */
static void pn_destruct(struct sock *sk)
{}

static int pn_init(struct sock *sk)
{}

static int pn_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
{}

static int pn_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
		      int flags, int *addr_len)
{}

/* Queue an skb for a sock. */
static int pn_backlog_rcv(struct sock *sk, struct sk_buff *skb)
{}

/* Module registration */
static struct proto pn_proto =;

static const struct phonet_protocol pn_dgram_proto =;

int __init isi_register(void)
{}

void __exit isi_unregister(void)
{}