[lkml]   [1999]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: userspace access to "u8", "u16", etc. types with filter.h
    >Indeed.  But this brings us to an intersting dilemma.  What is a
    >userspace program to do when it wants to build an LPF and attach it to a
    >socket? It needs the definitions in <linux/filter.h> to build the

    There are three options:

    - clean up the kernel header so it works from user space
    - get the appropriate definitions included in the libc
    - include the definitions somewhere else, either in your application or in
    some new library invented for the purpose.

    In most cases the latter is probably best.

    >Uggh! Does this not sound like a deficiency in the kernel interface to
    >you? I really shouldn't have to do either of these. There should be a
    >"userspace" version of the required data structures shouldn't there?

    It's not really the kernel's job to provide the user space API.


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

     \ /
      Last update: 2005-03-22 13:49    [W:0.018 / U:18.332 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site