How to copy a page to another page completely?

2007-03-05 Thread Yu-Chen Wu
Hi all, I tried "memcpy","__copy_to_user",and "__copy_to_user_inatomic",etc. The destination is BIO's bio_vec->page (the page should be in userspace), the source is a page of my modules; I get the addresses of the both pages from kmap() or kmap_atomic() then pass to "memcpy" or "__copy_to_user" or

RE: Could "bio_vec" be referenced any time?

2007-02-07 Thread Yu-Chen Wu
f Of Neil Brown Sent: Wednesday, February 07, 2007 3:46 AM To: Yu-Chen Wu Cc: linux-kernel@vger.kernel.org; linux-raid@vger.kernel.org Subject: Re: Could "bio_vec" be referenced any time? On Tuesday February 6, [EMAIL PROTECTED] wrote: > Hi all, > I write a module that creates a

Could "bio_vec" be referenced any time?

2007-02-06 Thread Yu-Chen Wu
Hi all, I write a module that creates a kernel thread to show the BIOs from MD modules. The kernel thread will call show_bio() when md passing a BIO to my module,else sleep. Sometimes, show_bio() continues working successfully ,but it somtimes makes "general protection fault

Kernel BUG at mm/slab.c:595

2007-02-04 Thread Yu-Chen Wu
Hi all, I am developing my module, but meet a bug. Is the bug created by me?? Kernel:2.6.18 on SUSE10.1 + Intel DualCore Feb 5 00:57:39 VM-SUSE kernel: --- [cut here ] - [please bite here ] - Feb 5 00:57:39 VM-SUSE kernel: Kernel BUG at mm/slab.c

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

2007-01-23 Thread Yu-Chen Wu
ges of the big buffer. You can see the page get from vmalloc_to_page() is different to all of the pages get form vm_struct. Is it possible that the buffer allocated by vmalloc be used to do DMA transmission? THX -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behal

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

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

Can a buffer allocated by "vmalloc( )" be used to ma ke DMA transmission (the buffer will be used by BIO struct ure) on X86_64 platform?

2007-01-16 Thread Yu-Chen Wu
Hi all, Can a buffer allocated by "vmalloc( )" be used to make DMA transmission (the buffer will be used by BIO structure) on X86_64 platform? I need a big buffer (cache) maybe 64MB or bigger, so I call vmalloc to allocate the buffer. If possible, how to get the pages in the buffer? Thanks - To

How to get the processor ID at run-time?

2006-12-28 Thread Yu-Chen Wu
Hi all, I am writing a kernel module that creates a kernel thread on a SMP platform. How to get the ID of the processor the kernel thread run on? Have any kernel API? THX Raymond - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMA