CopyOut Size Limits

2008-04-25 Thread Adam
Hi, I am writing a custom system call that needs to transfer 16kb of data from the kernel to userspace. I am transferring the data out of the kernel by using copyout. This seems to work for a small struct of data < 4k. int my_system_call(struct thread *td, struct my_system_call_args *uap)

Re: CopyOut Size Limits

2008-04-25 Thread Joerg Sonnenberger
On Fri, Apr 25, 2008 at 09:59:55AM -0400, Adam wrote: > Hi, I am writing a custom system call that needs to transfer 16kb of data > from the kernel to userspace. I am transferring the data out of the kernel > by using copyout. This seems to work for a small struct of data < 4k. You are not allo

Re: CopyOut Size Limits

2008-04-25 Thread Alexander Sack
On Fri, Apr 25, 2008 at 9:59 AM, Adam <[EMAIL PROTECTED]> wrote: > Hi, I am writing a custom system call that needs to transfer 16kb of data > from the kernel to userspace. I am transferring the data out of the kernel > by using copyout. This seems to work for a small struct of data < 4k. > > int

Re: CopyOut Size Limits

2008-04-25 Thread H.fazaeli
Do not allocate my_type (in general, big data structures) on kernel stack (e.g, use malloc(9)). Adam wrote: Hi, I am writing a custom system call that needs to transfer 16kb of data from the kernel to userspace. I am transferring the data out of the kernel by using copyout. This seems to wor