Re: MAP_NR for 2.4

2000-10-23 Thread Ralf Baechle
On Fri, Oct 20, 2000 at 12:38:57PM +0530, [EMAIL PROTECTED] wrote: > for using MAP_NR with 2.4, i think you can use > macro like > > #define MAP_NR(addr) (((unsigned long)(addr)-PAGE_OFFSET) >>PAGE_SHIFT) This only works for contiguous memory. Ralf - To unsubscribe from this list: send t

Re: MAP_NR

2000-10-23 Thread Linus Torvalds
In article <[EMAIL PROTECTED]>, Mike Galbraith <[EMAIL PROTECTED]> wrote: >On Thu, 19 Oct 2000 [EMAIL PROTECTED] wrote: > >> can anyone tell the subsitute for MAP_NR in version 2.4? >> or is MAP_NR still there? > >Hi, > >MAP_NR() became virt_to_page() as of test6-pre8. Not quite. The expression

Re: MAP_NR

2000-10-20 Thread Mike Galbraith
On Thu, 19 Oct 2000 [EMAIL PROTECTED] wrote: > can anyone tell the subsitute for MAP_NR in version 2.4? > or is MAP_NR still there? Hi, MAP_NR() became virt_to_page() as of test6-pre8. -Mike - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a m

RE: MAP_NR for 2.4

2000-10-20 Thread aprasad
for using MAP_NR with 2.4, i think you can use macro like #define MAP_NR(addr) (((unsigned long)(addr)-PAGE_OFFSET) >>PAGE_SHIFT) regards anil - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http

Re: MAP_NR

2000-10-19 Thread John Levon
On Thu, 19 Oct 2000 [EMAIL PROTECTED] wrote: > can anyone tell the subsitute for MAP_NR in version 2.4? > or is MAP_NR still there? > e.g. int i = MAP_NR(buffer); becomes struct page *p = virt_to_page(buffer); I believe ... john - To unsubscribe from this list: send the line "unsubscribe