From owner-freebsd-current Mon Mar 20 11:37:34 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA04007 for current-outgoing; Mon, 20 Mar 1995 11:37:34 -0800 Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id LAA04001 for ; Mon, 20 Mar 1995 11:37:32 -0800 Received: by halloran-eldar.lcs.mit.edu; id AA27595; Mon, 20 Mar 1995 14:37:27 -0500 Date: Mon, 20 Mar 1995 14:37:27 -0500 From: Garrett Wollman Message-Id: <9503201937.AA27595@halloran-eldar.lcs.mit.edu> To: FreeBSD-Current Mailing List Subject: Why does kern_lkm.c use kmem_alloc()? Sender: current-owner@FreeBSD.org Precedence: bulk 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'.) -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@lcs.mit.edu | Shashish is the bonding of hearts in spite of distance. Opinions not those of| It is a bond more powerful than absence. We like people MIT, LCS, ANA, or NSA| who like Shashish. - Claude McKenzie + Florent Vollant