lkml.org 
[lkml]   [2012]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: Is iommu_num_pages() broken ?
    From
    Date
    On Sun, 2012-08-05 at 08:39 +0200, Andreas Schwab wrote:
    > addr & (io_page_size - 1) computes the offset into the page pointed to
    > by addr. Looks right to me.
    >
    > addr & ~(io_page_size - 1) would round addr down to the start of the
    > page.

    Ah that's right, for some reason I'm so used to seeing ~ before such
    constructs that my brain must have imagined it :-)

    Sorry for the noise. Next time I'll have coffee first then re-check ...

    Cheers,
    Ben.



    \
     
     \ /
      Last update: 2012-08-05 09:21    [W:0.039 / U:29.576 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site