[lkml]   [2011]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] fs: add FD_CLOFORK and O_CLOFORK
    Le samedi 07 mai 2011 à 13:41 +0200, Geert Uytterhoeven a écrit :
    > On Sat, May 7, 2011 at 08:29, Eric Dumazet <> wrote:
    > > I am sure the following idea already was discussed in the past :
    > >
    > > Embed the close_on_exec / close_on_close bits in the low order bits of
    > > file pointers.
    > How many low order bits do you expect to have in file pointers?
    > Are files allocated using kmalloc(), or do they just obey the alignment of the
    > individual members of a file struct? In the latter case, you'll have onlyv1 low
    > order bit to play with on m68k.

    We should have two bits at a very minimum.

    clone_on_exec & clone_on_fork would fit.

    filp are allocated with a kmem_cachep with cache line alignement.

    filp_cachep = kmem_cache_create("filp", sizeof(struct file), 0,

    So in practice we should have more than two bits ;)

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2011-05-07 14:35    [W:0.020 / U:93.616 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site