Re: "remap_page_range" compile ERROR

2005-03-09 Thread Arjan van de Ven
> Please suggest me what could be the problem. the problem is that you are using a way way way too old kernel. I suggest you fix that first - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: "remap_page_range" compile ERROR

2005-03-09 Thread linux-os
c] Error 1 .. The call to "remap_page_range()" is as follows:- return (io_remap_page_range(vma->vm_start, off, vma->vm_end - vma->vm_start, vma->vm_page_prot)) ? -EAGAIN : 0; Please suggest me what could be the problem. Regards, Mukund jampala It now gets vma as the first argme

"remap_page_range" compile ERROR

2005-03-09 Thread Mukund JB.
sing arg 1 of 'remap_page_range_R2baf18f2' makes pointer from integer without a cast i810_main.c: 643: incompatible type for argument 4 of 'remap_page_range_R2baf18f2' i810_main.c: 643: too few arguments to function 'remap_page_range_R2baf18f2' Make[3]: *** [I810_main.c] Error 1 .. The call to "r

remap_page_range compile ERROR

2005-03-09 Thread Mukund JB.
of 'remap_page_range_R2baf18f2' makes pointer from integer without a cast i810_main.c: 643: incompatible type for argument 4 of 'remap_page_range_R2baf18f2' i810_main.c: 643: too few arguments to function 'remap_page_range_R2baf18f2' Make[3]: *** [I810_main.c] Error 1 .. The call to remap_page_range

Re: remap_page_range compile ERROR

2005-03-09 Thread linux-os
.. The call to remap_page_range() is as follows:- return (io_remap_page_range(vma-vm_start, off, vma-vm_end - vma-vm_start, vma-vm_page_prot)) ? -EAGAIN : 0; Please suggest me what could be the problem. Regards, Mukund jampala It now gets vma as the first argment as well as the others. Cheers, Dick

Re: remap_page_range compile ERROR

2005-03-09 Thread Arjan van de Ven
Please suggest me what could be the problem. the problem is that you are using a way way way too old kernel. I suggest you fix that first - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

Functionality of mmap, nopage and remap_page_range

2001-06-12 Thread Steffen Persvold
Hi kernel list readers, I have a question about the functionality of mmap(), vma->vm_ops functions and different vma->vm_flags. Is there any documentation that describes these methods and how they should work (i.e when should mmap() use remap_page_range and when is the vma->vm_ops

Functionality of mmap, nopage and remap_page_range

2001-06-12 Thread Steffen Persvold
Hi kernel list readers, I have a question about the functionality of mmap(), vma-vm_ops functions and different vma-vm_flags. Is there any documentation that describes these methods and how they should work (i.e when should mmap() use remap_page_range and when is the vma-vm_ops-no_page

questions about virtual/physical addresses, remap_page_range, and ioremap

2001-04-26 Thread Friedrich Steven E CONT CNIN
remap_page_range(), which needs the physical address. I CAN still get it from pci_resource_start(), but I'm thinking I shouldn't. The authors of the next edition say that you can remap virtual addresses returned by ioremap, but didn't give an example, and I just can't figure it out. 2. How do I use

questions about virtual/physical addresses, remap_page_range, and ioremap

2001-04-26 Thread Friedrich Steven E CONT CNIN
remap_page_range(), which needs the physical address. I CAN still get it from pci_resource_start(), but I'm thinking I shouldn't. The authors of the next edition say that you can remap virtual addresses returned by ioremap, but didn't give an example, and I just can't figure it out. 2. How do I use

nopage() vs remap_page_range

2000-10-18 Thread Justin Schoeman
Linus Torvalds wrote: ...snip... > > Anyway, I didn't realize you were talking about the sound drivers use of > remap_page_range(). That's not the original reason for remap_page_range() > at all, and in fact it's the _ugly_ way to do things. It's simple and it > works, but

nopage() vs remap_page_range

2000-10-18 Thread Justin Schoeman
Linus Torvalds wrote: ...snip... Anyway, I didn't realize you were talking about the sound drivers use of remap_page_range(). That's not the original reason for remap_page_range() at all, and in fact it's the _ugly_ way to do things. It's simple and it works, but it's not pretty. Quite

Re: remap_page_range

2000-10-17 Thread Eric Lowe
Hello, > > >suppose i allocate an buffer by calling kmalloc. > > >i want to map this buffer to user address space. > >will remap_page_range will automatically map this > >buffer to calling process's address space. > > it should do if have the struct v

Re: remap_page_range

2000-10-17 Thread Eric Lowe
Hello, suppose i allocate an buffer by calling kmalloc. i want to map this buffer to user address space. will remap_page_range will automatically map this buffer to calling process's address space. it should do if have the struct vm_area_struct of the calling process. as far as i

Re: remap_page_range

2000-10-16 Thread aprasad
>suppose i allocate an buffer by calling kmalloc. >i want to map this buffer to user address space. >will remap_page_range will automatically map this >buffer to calling process's address space. it should do if have the struct vm_area_struct of the calling process. as far as i

remap_page_range

2000-10-16 Thread anil kumar
Hi, suppose i allocate an buffer by calling kmalloc. i want to map this buffer to user address space. will remap_page_range will automatically map this buffer to calling process's address space. thanks. __ Do You Yahoo!? Yahoo! Messenger - Talk

remap_page_range

2000-10-16 Thread anil kumar
Hi, suppose i allocate an buffer by calling kmalloc. i want to map this buffer to user address space. will remap_page_range will automatically map this buffer to calling process's address space. thanks. __ Do You Yahoo!? Yahoo! Messenger - Talk

Re: PROBLEM: Is remap_page_range() working properly?

2000-09-23 Thread Andrea Santoro
Thanx for the answer. > You can only remap reserved or I/O space > Read drivers/sound a bit - it has code that allocates, reserves and remaps > memory Oh, now I see why I found so many references to remap_page_range() in sound cards code. But there is still something that seems odd

Re: PROBLEM: Is remap_page_range() working properly?

2000-09-23 Thread Andrea Santoro
Thanx for the answer. You can only remap reserved or I/O space Read drivers/sound a bit - it has code that allocates, reserves and remaps memory Oh, now I see why I found so many references to remap_page_range() in sound cards code. But there is still something that seems odd to me: 1

Re: PROBLEM: Is remap_page_range() working properly?

2000-09-22 Thread Alan Cox
> Is remap_page_range working properly? Probably > But the code in remap_pte_range() seems to behave exactly in the opposite > way; as far as I can see, it sets to null every page, _except_ "references > to nonexistent pages"! Here are the relevant lines of code take

PROBLEM: Is remap_page_range() working properly?

2000-09-22 Thread mc8835
Is remap_page_range working properly? Keywords: memory management, kernel, /dev/mem, memory mapping Version: Verified in Linux version 2.0.32 ([EMAIL PROTECTED]) (gcc version 2.7.2.3) #1 Wed Nov 19 00:46:45 EST 1997 But spotted also in the code of kernel 2.2.17 and 2.4.0-test1 Description

Re: PROBLEM: Is remap_page_range() working properly?

2000-09-22 Thread Alan Cox
Is remap_page_range working properly? Probably But the code in remap_pte_range() seems to behave exactly in the opposite way; as far as I can see, it sets to null every page, _except_ "references to nonexistent pages"! Here are the relevant lines of code taken from kernel 2.0.32

remap_page_range, frame buffer, MIPS - mmap problem

2000-09-19 Thread Mark Lehrer
Hello. I am trying to mmap a frame buffer device (which I wrote) and it doesn't seem to work. I verified the address - it appears OK. However, whatever I write out to the address from my userland program, the bits appear to go into the bit bucket. I am trying to figure out remap_page_range

remap_page_range, frame buffer, MIPS - mmap problem

2000-09-19 Thread Mark Lehrer
Hello. I am trying to mmap a frame buffer device (which I wrote) and it doesn't seem to work. I verified the address - it appears OK. However, whatever I write out to the address from my userland program, the bits appear to go into the bit bucket. I am trying to figure out remap_page_range