[lkml]   [2001]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: unsigned long ioremap()?
    Date said:
    > The problem I see is that with the former solution nothing prevents
    > from to do:

    > regs->reg2 = 13;

    > That's indeed the reason to change ioremap prototype for 2.5.

    An alternative is to add an fixed offset to the cookie before returning it,
    and subtract it again in {read,write}[bwl].


    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 12:52    [W:0.070 / U:8.740 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site