summaryrefslogtreecommitdiff
path: root/include/linux/net.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-04-09 16:25:28 +0300
committerChristoph Hellwig <hch@lst.de>2018-05-26 10:16:44 +0300
commit152524231023c76b3b7b3e71017c7f951812868d (patch)
tree96a821e8d4d5ac0577363cc9c5e7bc6d5ddcc051 /include/linux/net.h
parent3cafb37633a1230011c5415e6f394b05260d21ad (diff)
downloadlinux-152524231023c76b3b7b3e71017c7f951812868d.tar.xz
net: add support for ->poll_mask in proto_ops
The socket file operations still implement ->poll until all protocols are switched over. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/net.h')
-rw-r--r--include/linux/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/net.h b/include/linux/net.h
index 2248a052061d..3fd9d8c16581 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -147,6 +147,7 @@ struct proto_ops {
int (*getname) (struct socket *sock,
struct sockaddr *addr,
int peer);
+ __poll_t (*poll_mask) (struct socket *sock, __poll_t events);
__poll_t (*poll) (struct file *file, struct socket *sock,
struct poll_table_struct *wait);
int (*ioctl) (struct socket *sock, unsigned int cmd,