Re: Locking Memory Question

2015-07-30 Thread Laurie Jennings via freebsd-net
On Thu, 7/30/15, John Baldwin j...@freebsd.org wrote: Subject: Re: Locking Memory Question To: K. Macy km...@freebsd.org Cc: freebsd-net@freebsd.org freebsd-net@freebsd.org, John-Mark Gurney j...@funkthat.com, Laurie Jennings laurie_jennings_1

Re: Locking Memory Question

2015-07-30 Thread John Baldwin
On Wednesday, July 29, 2015 11:28:03 PM K. Macy wrote: Im not clear how I'd do that. the data being passed up from the kernel is a variable size. To use copyout I'd have to pass a pointer with a static buffer, right? Correct, you can pass along the size, and if it's not large enough

Re: Locking Memory Question

2015-07-30 Thread Laurie Jennings via freebsd-net
On Thu, 7/30/15, John Baldwin j...@freebsd.org wrote: Subject: Re: Locking Memory Question To: K. Macy km...@freebsd.org Cc: freebsd-net@freebsd.org freebsd-net@freebsd.org, John-Mark Gurney j...@funkthat.com, Laurie Jennings laurie_jennings_1

Re: Locking Memory Question

2015-07-30 Thread Laurie Jennings via freebsd-net
On Thu, 7/30/15, John Baldwin j...@freebsd.org wrote: Subject: Re: Locking Memory Question To: K. Macy km...@freebsd.org Cc: freebsd-net@freebsd.org freebsd-net@freebsd.org, John-Mark Gurney j...@funkthat.com, Laurie Jennings laurie_jennings_1

Re: Locking Memory Question

2015-07-30 Thread Laurie Jennings via freebsd-net
On Thu, 7/30/15, Hooman Fazaeli hoomanfaza...@gmail.com wrote: Subject: Re: Locking Memory Question To: Laurie Jennings laurie_jennings_1...@yahoo.com Cc: freebsd-net@freebsd.org freebsd-net@freebsd.org Date: Thursday, July 30, 2015, 2:35 PM

Re: Locking Memory Question

2015-07-30 Thread Hooman Fazaeli
On 7/30/2015 5:22 AM, Laurie Jennings via freebsd-net wrote: On Wed, 7/29/15, John-Mark Gurney j...@funkthat.com wrote: Subject: Re: Locking Memory Question To: Laurie Jennings laurie_jennings_1...@yahoo.com Cc: John Baldwin j...@freebsd.org

Re: Locking Memory Question

2015-07-30 Thread K. Macy
Im not clear how I'd do that. the data being passed up from the kernel is a variable size. To use copyout I'd have to pass a pointer with a static buffer, right? Correct, you can pass along the size, and if it's not large enough try again... Less than ideal... Is there a way to malloc

Locking Memory Question

2015-07-29 Thread Laurie Jennings via freebsd-net
I have a problem and I can't quite figure out where to look. This is what Im doing: I have an IOCTL to read a block of data, but the data is too large to return via ioctl. So to get the data, I allocate a block in a kernel module: foo = malloc(1024000,M_DEVBUF,M_WAITOK); I pass up a pointer

Locking Memory Question

2015-07-29 Thread Laurie Jennings via freebsd-net
___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org

Re: Locking Memory Question

2015-07-29 Thread John-Mark Gurney
Laurie Jennings via freebsd-net wrote this message on Wed, Jul 29, 2015 at 15:26 -0700: I have a problem and I can't quite figure out where to look. This is what Im doing: I have an IOCTL to read a block of data, but the data is too large to return via ioctl. So to get the data, I

Re: Locking Memory Question

2015-07-29 Thread Laurie Jennings via freebsd-net
On Wed, 7/29/15, John-Mark Gurney j...@funkthat.com wrote: Subject: Re: Locking Memory Question To: Laurie Jennings laurie_jennings_1...@yahoo.com Cc: John Baldwin j...@freebsd.org, freebsd-net@freebsd.org Date: Wednesday, July 29, 2015, 7:25 PM

Re: Locking Memory Question

2015-07-29 Thread John Baldwin
On Wednesday, July 29, 2015 03:26:46 PM Laurie Jennings wrote: I have a problem and I can't quite figure out where to look. This is what Im doing: I have an IOCTL to read a block of data, but the data is too large to return via ioctl. So to get the data, I allocate a block in a kernel

Re: Locking Memory Question

2015-07-29 Thread John-Mark Gurney
Laurie Jennings wrote this message on Wed, Jul 29, 2015 at 17:52 -0700: On Wed, 7/29/15, John-Mark Gurney j...@funkthat.com wrote: Subject: Re: Locking Memory Question To: Laurie Jennings laurie_jennings_1...@yahoo.com Cc: John Baldwin j