Thread: using functions and macros defined in include/linux/list.h

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    100

    using functions and macros defined in include/linux/list.h

    Hello!
    Supposing that I have to deal with double linked lists in user space and I don't want to reinvent the wheel, how can I use the functions and macros defined in /linux/list.h and then avoid to reinvent the wheel? Is copy and paste the only solution (with problems connected with the the prefetch macro used e.g by list_for_each_entry()) ?

    Thanks! bye
    /* NO COMMENT */

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    This page claims "A usable version of this file is available here for download. " http://isis.poly.edu/kulesh/stuff/src/klist/

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Oct 2007
    Posts
    100
    thanks matsp!
    /* NO COMMENT */

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. parameterized macros vs. functions
    By Tbrez in forum C Programming
    Replies: 3
    Last Post: 04-02-2009, 12:33 PM
  2. An array of macro functions?
    By someprogr in forum C Programming
    Replies: 6
    Last Post: 01-28-2009, 07:05 PM
  3. Macros vs Inline Functions
    By vb.bajpai in forum C Programming
    Replies: 4
    Last Post: 08-02-2007, 11:51 AM
  4. Macros Vs Inline functions
    By passionate_guy in forum C++ Programming
    Replies: 4
    Last Post: 04-29-2006, 02:52 AM
  5. Visual C++ and UNICODE - _t macros
    By nvoigt in forum Windows Programming
    Replies: 2
    Last Post: 04-22-2005, 07:42 AM