[lkml]   [2001]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb-uhci patch [RFC: API]
    > I wonder if it may be feasible to allocate a bunch of contiguous
    > pages. Then, whenever the hardware returns a bus address, subtract
    > the remembered bus address of the zone start, add the offset to
    > the virtual and voila.

    Even if not you can hash by page number not low bits so the hash is way
    smaller. You (in most cases) can also write the entry number in the relevant
    tables onto the end of the object in spare space (or in front of it)

    Something as trivial as

    struct usb_thingy
    u32 thing_id;
    u32 flags;
    struct usb_thingy *next;
    #ifndef __LP64__
    u32 pad
    struct usb_controller_goo goo;


    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: 2005-03-22 13:29    [W:0.019 / U:4.364 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site