Best way to lock malloc'd memory in kernel

2000-07-28 Thread Isaac Waldron

I'm writing a device driver for plex86 (the FreeMWare virtual machine
software), and have a buffer that needs to be non-pageable.  It was malloc'd
with the malloc(size, type, flags) kernel malloc function.  What's the best
way to make this memory unpageable?

Thanks in advance,
Isaac Waldron
waldroni at lr dot net



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: Best way to lock malloc'd memory in kernel

2000-07-28 Thread Daniel O'Connor


On 29-Jul-00 Isaac Waldron wrote:
 I'm writing a device driver for plex86 (the FreeMWare virtual machine
 software), and have a buffer that needs to be non-pageable.  It was malloc'd
 with the malloc(size, type, flags) kernel malloc function.  What's the best
 way to make this memory unpageable?

No kernel memory is pageable so it doesn't matter :)

---
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Best way to lock malloc'd memory in kernel

2000-07-28 Thread Isaac Waldron


  I'm writing a device driver for plex86 (the FreeMWare virtual machine
  software), and have a buffer that needs to be non-pageable.  It was
malloc'd
  with the malloc(size, type, flags) kernel malloc function.  What's the
best
  way to make this memory unpageable?

 No kernel memory is pageable so it doesn't matter :)


Thanks!  I didn't realize that, I suppose I should have RTFM'ed a bit more
before asking, but I just kind of assumed (we all know what that does) that
memory malloc'd in kernel mode was pageable.  I guess I should ask whether
that holds true for kernel modules as well, because that's what I'm actually
writing.

Thanks again,
Isaac Waldron
waldroni at lr dot net



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Best way to lock malloc'd memory in kernel

2000-07-28 Thread Daniel O'Connor


On 29-Jul-00 Isaac Waldron wrote:
 Thanks!  I didn't realize that, I suppose I should have RTFM'ed a bit more
 before asking, but I just kind of assumed (we all know what that does) that
 memory malloc'd in kernel mode was pageable.  I guess I should ask whether

Yes, well it would be nice to have some kernel memory pageable but..

 that holds true for kernel modules as well, because that's what I'm actually
 writing.

Yes, writing a module is no different than writing for static kernel code.

---
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message