RE: Could convert a buffer that allocated by vmalloc to pages?

2007-01-23 Thread Anton Altaparmakov
Hi, On Tue, 23 Jan 2007, Yu-Chen Wu wrote: > All of the code as below: > //== > extern struct vm_struct *vmlist; > struct vm_struct *vmlist2,*L2vm; > > int find_vm_struct(void *addr) > { > struct vm_struct **p; > int i; >

Re: Could convert a buffer that allocated by vmalloc to pages?

2007-01-23 Thread Kyle McMartin
On Tue, Jan 23, 2007 at 10:15:33PM +0800, Yu-Chen Wu wrote: > printk(KERN_INFO "vmalloc_to_page tpage :%x\n",tpage); > //===info of dmesg== > [ 1561.768492] page allocated:60ea9000 > [ 1561.768497] vmalloc_to_page tpage :7fcf7e18 > > Why the page address get from vmalloc_t

RE: Could convert a buffer that allocated by vmalloc to pages?

2007-01-23 Thread Yu-Chen Wu
f Of Anton Altaparmakov Sent: Tuesday, January 23, 2007 10:50 PM To: Yu-Chen Wu Cc: linux-kernel@vger.kernel.org Subject: RE: Could convert a buffer that allocated by vmalloc to pages? On Tue, 23 Jan 2007, Yu-Chen Wu wrote: > I tried vmalloc_to_page() and I have some question. > I print the &quo

RE: Could convert a buffer that allocated by vmalloc to pages?

2007-01-23 Thread Anton Altaparmakov
rom vmalloc_to_page is different with the first > page address of the vm_struct (73d65000)? > > THX > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Anton Altaparmakov > Sent: Tuesday, January 23, 2007 9:12 PM > To: Yu-Chen Wu

RE: Could convert a buffer that allocated by vmalloc to pages?

2007-01-23 Thread Yu-Chen Wu
first page address of the vm_struct (73d65000)? THX -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anton Altaparmakov Sent: Tuesday, January 23, 2007 9:12 PM To: Yu-Chen Wu Cc: linux-kernel@vger.kernel.org Subject: Re: Could convert a buffer that allocated by

Re: Could convert a buffer that allocated by vmalloc to pages?

2007-01-23 Thread Anton Altaparmakov
On Tue, 2007-01-23 at 21:04 +0800, Yu-Chen Wu wrote: > Hi, > I write a driver have a big buffer (16MB,allocated by vmalloc). > I want to use the buffer to do DMA transmission so I need getting the pages > of the buffer. > Have any kernel API can do this? > My platform is x86_64 and 2GB RAM vmalloc

Could convert a buffer that allocated by vmalloc to pages?

2007-01-23 Thread Yu-Chen Wu
Hi, I write a driver have a big buffer (16MB,allocated by vmalloc). I want to use the buffer to do DMA transmission so I need getting the pages of the buffer. Have any kernel API can do this? My platform is x86_64 and 2GB RAM THX - To unsubscribe from this list: send the line "unsubscribe linux-k