From: David Miller <davem@davemloft.net>
To: netdev@vger.kernel.org
Subject: Re: the mystery that is sock_fasync
Date: Fri, 11 Aug 2006 04:35:39 -0700 (PDT) [thread overview]
Message-ID: <20060811.043539.50338105.davem@davemloft.net> (raw)
In-Reply-To: <20060811.031516.38316536.davem@davemloft.net>
From: David Miller <davem@davemloft.net>
Date: Fri, 11 Aug 2006 03:15:16 -0700 (PDT)
> If my analysis is correct we can incredibly simplify sock_fasync().
I've also found more bugs in sock_fasync(), it's a real can of worms
:-)
It deviates from the return value policies used by othe
file_ops->fasync() implementations. For example, if we look at
fasync_helper() it clearly shows that we should return 1 if a list
manipulation (insert of delete) happened else it should return 0.
Also, my theory about struct file<-->struct socket being a one-to-one
mapping is fully supported by the fact that struct socket has a "file"
member that can only take on one value.
next prev parent reply other threads:[~2006-08-11 11:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-11 10:15 the mystery that is sock_fasync David Miller
2006-08-11 10:28 ` Evgeniy Polyakov
2006-08-11 10:31 ` David Miller
2006-08-11 11:35 ` David Miller [this message]
2006-08-11 13:35 ` Alexey Kuznetsov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060811.043539.50338105.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).