Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/kern



On Tue, 11 Nov 2008, Andrew Doran wrote:

> My question is, is there an instance where an operation on a socket can now
> fail with ENOMEM, where it would not have failed when we were passing data
> around in mbufs?

setsockopt() will never fail for this reason but there are some cases
where getsockopt() could, eg in

        netinet/ip_output.c
                IP_OPTIONS
                IP_MULTICAST_IF

it used to use m_get(M_WAIT) and does now use kmem_zalloc(KM_NOSLEEP)

iain


Home | Main Index | Thread Index | Old Index