EV_INOTIFY_BUFSIZE's doubt in libev

Marc Lehmann schmorp at schmorp.de
Wed Nov 10 10:48:09 CET 2010


On Wed, Nov 10, 2010 at 11:39:09AM +0800, Simon Liu <simohayha.bobo at gmail.com> wrote:
> when alignment padding   is happen?   and what  "some reason is >> 8" is
> mean?

Ah - the alignment happens in the kernel, is required even for a single
event read, and is much larger than 8 (which would be proper structure
alignment basically everywhere). in fact, the alignment is one empty
inotify_event structure.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list