EV_INOTIFY_BUFSIZE's doubt in libev

Simon Liu simohayha.bobo at gmail.com
Wed Nov 10 04:39:09 CET 2010


Thanks!

when alignment padding   is happen?   and what  "some reason is >> 8" is
mean?

On Wed, Nov 10, 2010 at 4:27 AM, Marc Lehmann <schmorp at schmorp.de> wrote:

> 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
>      -=====/_/_//_/\_,_/ /_/\_\
>
> _______________________________________________
> libev mailing list
> libev at lists.schmorp.de
> http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev
>



-- 
博观约取

豆瓣:www.douban.com/people/mustang/

blog: www.pagefault.info

twitter: www.twitter.com/minibobo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20101110/3ac32971/attachment.html>


More information about the libev mailing list