Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 95 14:20:56 MST
From:      terry@cs.weber.edu (Terry Lambert)
To:        wollman@halloran-eldar.lcs.mit.edu (Garrett Wollman)
Cc:        current@FreeBSD.org
Subject:   Re: Why does kern_lkm.c use kmem_alloc()?
Message-ID:  <9503202120.AA03028@cs.weber.edu>
In-Reply-To: <9503201937.AA27595@halloran-eldar.lcs.mit.edu> from "Garrett Wollman" at Mar 20, 95 02:37:27 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> Can anybody explain why kern_lkm.c uses kmem_alloc() to allocate
> memory rather than malloc()?  Is it just because of the kernel
> malloc()'s size limit?  (I'd really like for it to use malloc so that
> I could tell how much memory is occupied by LKMs from `vmstat -m'.)

Contiguous driver buffer space for DMA target.

It can use plain malloc for the structures for the list of allocated
devices, etc. with no trouble, however.


					Terry Lambert
					terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9503202120.AA03028>