All of lore.kernel.org
 help / color / mirror / Atom feed
* keyctl_capabilities and buflen
@ 2019-06-05 13:02 Ben Boeckel
  2019-06-19 13:30 ` Ben Boeckel
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ben Boeckel @ 2019-06-05 13:02 UTC (permalink / raw)
  To: keyrings

Hi,

I'm looking at the implementation of `keyctl_capabilities` in the `next`
branch and it's not clear if `buflen` is the size of the memory pointed
to by `buffer` in array size or in byte size by its documentation. It
seems to be the size in bytes by the code (the &3) could probably
warrant a comment to make it clearer that it is related to
sizeof(unsigned int) here). This seems very odd to me, or is it just a
common kernel pattern I haven't seen before?

Thanks,

--Ben

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-19 15:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-05 13:02 keyctl_capabilities and buflen Ben Boeckel
2019-06-19 13:30 ` Ben Boeckel
2019-06-19 14:56 ` David Howells
2019-06-19 15:15 ` Ben Boeckel
2019-06-19 15:22 ` David Howells

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.