aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/net.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-04-09 15:25:28 +0200
committerChristoph Hellwig <hch@lst.de>2018-05-26 09:16:44 +0200
commit152524231023c76b3b7b3e71017c7f951812868d (patch)
tree96a821e8d4d5ac0577363cc9c5e7bc6d5ddcc051 /include/linux/net.h
parentnet: refactor socket_poll (diff)
downloadlinux-dev-152524231023c76b3b7b3e71017c7f951812868d.tar.xz
linux-dev-152524231023c76b3b7b3e71017c7f951812868d.zip
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,