EV_INOTIFY_BUFSIZE's doubt in libev

Marc Lehmann schmorp at schmorp.de
Tue Nov 9 21:27:59 CET 2010


On Tue, Nov 09, 2010 at 11:17:01PM +0800, Simon Liu <simohayha.bobo at gmail.com> wrote:
> Hi marc, I read libev's code , I found EV_INOTIFY_BUFSIZE's define
> 
> /* the * 2 is to allow for alignment padding, which for some reason is >> 8
> */
> # define EV_INOTIFY_BUFSIZE (sizeof (struct inotify_event) * 2 + NAME_MAX)
> 
> therefor my problem is why need *2(your comment make me doubt).

Hmm, what's unclear/what is your doubt?

-- 
                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