lkml.org 
[lkml]   [2007]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [TOMOYO 05/15](repost) Domain transition handler functions.
    From
    In article <200710022144.BFF09817.VFFOOJLSFHtQMO@I-love.SAKURA.ne.jp> (at Tue, 2 Oct 2007 21:44:57 +0900), Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> says:

    > If I use "struct hlist_node" which has two pointers,
    > it needs more memory than "struct something" which has one pointer.
    > It is possible to use API defined in include/linux/list.h ,
    > but to reduce memory usage, I dare not use these API.
    > Singly-linked list's rule in TOMOYO Linux is quite simple,
    > "ptr->next is NULL if the last element" and "non-NULL if not".

    Introducing your own list is not good.
    Please use hlist or introduce new "slist".

    --yoshfuji
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-10-02 15:01    [W:0.024 / U:29.828 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site