EV_INOTIFY_BUFSIZE's doubt in libev

Simon Liu simohayha.bobo at gmail.com
Tue Nov 9 16:17:01 CET 2010


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

-- 
博观约取

豆瓣: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/20101109/da7af846/attachment.html>


More information about the libev mailing list