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
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
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
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
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
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
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
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
___
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
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
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
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
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
13 matches
Mail list logo