[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200905221022.48790.remi.denis-courmont@nokia.com>
Date: Fri, 22 May 2009 10:22:48 +0300
From: "Rémi Denis-Courmont"
<remi.denis-courmont@...ia.com>
To: ext Arnaldo Carvalho de Melo <acme@...hat.com>
Cc: David Miller <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Chris Van Hoof <vanhoof@...hat.com>,
Clark Williams <williams@...hat.com>
Subject: Re: [RFC 1/2] net: Introduce recvmmsg socket syscall
On Thursday 21 May 2009 02:06:52 ext Arnaldo Carvalho de Melo wrote:
> + /*
> + * We may return less entries than requested (vlen) if the
> + * sock is non block and there aren't enough datagrams.
> + */
> + if (err == 0 || (err == -EAGAIN && (flags & MSG_DONTWAIT)))
> + return datagrams;
> return err;
> }
Could there be a situation whereby we receive one or more datagrams, then get
an error? How does userland get the datagrams then?
--
Rémi Denis-Courmont
Nokia Devices R&D, Maemo Software, Helsinki
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists