lkml.org 
[lkml]   [2018]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 04/31] net: add support for ->poll_mask in proto_ops
    On Thu, Jan 04, 2018 at 09:00:16AM +0100, Christoph Hellwig wrote:
    > The socket file operations still implement ->poll until all protocols are
    > switched over.
    >
    > Signed-off-by: Christoph Hellwig <hch@lst.de>
    > ---
    > include/linux/net.h | 3 +++
    > net/socket.c | 61 +++++++++++++++++++++++++++++++++++++++++++++++++----
    > 2 files changed, 60 insertions(+), 4 deletions(-)
    >
    > diff --git a/include/linux/net.h b/include/linux/net.h
    > index c2d468cb9821..94d65de30cb7 100644
    > --- a/include/linux/net.h
    > +++ b/include/linux/net.h
    > @@ -147,6 +147,9 @@ struct proto_ops {
    > int (*getname) (struct socket *sock,
    > struct sockaddr *addr,
    > int *sockaddr_len, int peer);
    > + void (*pre_poll) (const struct sock *sk);

    Description? Or more descriptive name, for that matter...

    > + __poll_t (*poll_mask) (struct file *file, struct socket *sock,
    > + __poll_t events);

    Does that sucker need struct file?

    \
     
     \ /
      Last update: 2018-01-06 20:17    [W:3.458 / U:0.512 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site