Re: Locking Memory Question

2015-07-30 Thread Laurie Jennings via freebsd-net
On Thu, 7/30/15, Hooman Fazaeli wrote: Subject: Re: Locking Memory Question To: "Laurie Jennings" Cc: "freebsd-net@freebsd.org" Date: Thursday, July 30, 2015, 2:35 PM On 7/30/2015 5:22 AM, Laurie Jennings v

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 wrote: Subject: Re: Locking Memory Question To: "Laurie Jennings" Cc: "John Baldwin" , freebsd-net@freebsd.org Date: Wednesd

Re: Locking Memory Question

2015-07-30 Thread Laurie Jennings via freebsd-net
On Thu, 7/30/15, John Baldwin wrote: Subject: Re: Locking Memory Question To: "K. Macy" Cc: "freebsd-net@freebsd.org" , "John-Mark Gurney" , "Laurie Jennings" Date: Thursday, July 30, 2015, 10:16 AM

Re: Locking Memory Question

2015-07-30 Thread Laurie Jennings via freebsd-net
On Thu, 7/30/15, John Baldwin wrote: Subject: Re: Locking Memory Question To: "K. Macy" Cc: "freebsd-net@freebsd.org" , "John-Mark Gurney" , "Laurie Jennings" Date: Thursday, July 30, 2015, 10:16 AM

Re: Locking Memory Question

2015-07-30 Thread Laurie Jennings via freebsd-net
On Thu, 7/30/15, John Baldwin wrote: Subject: Re: Locking Memory Question To: "K. Macy" Cc: "freebsd-net@freebsd.org" , "John-Mark Gurney" , "Laurie Jennings" Date: Thursday, July 30, 2015, 10:16 AM

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

Re: Locking Memory Question

2015-07-29 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

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 wrote: > > Subject: Re: Locking Memory Question > To: "Laurie Jennings" > Cc: "John Baldwin" , free

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 ke

Re: Locking Memory Question

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

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, >

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"