[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.090 / U:37.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site