On Mon, Jun 15, 2015 at 07:29:45PM -0700, Tadeusz Struk wrote: > > Actually I think it is useful. Without it the user will need to allocate > a buffer, and invoke an operation only to find out that the buffer need to be > bigger.
No the user could simply supply NULL/0 and get the requisite information if they have no idea what the proper size is. Cheers, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/