*BSD News Article 6288


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!umn.edu!math.fu-berlin.de!hrz.tu-chemnitz.de!wutcd
From: wutcd@chemnitz.guug.de (Joerg Wunsch)
Subject: Re: BSD / 386BSD - two kernel/driver questions
Message-ID: <wutcd.718647723@hadrian>
Keywords: BSD 386BSD kernel-malloc / shutdown awareness of a driver
Sender: bin@hrz.tu-chemnitz.de (Owner of all binaries)
Organization: tu-chemnitz
References: <1583@hcshh.hcs.de>
Date: Fri, 9 Oct 1992 16:22:03 GMT
Lines: 21

hm@hcshh.hcs.de (Hellmuth Michaelis) writes:


>1. is it possible to malloc/free some memory inside a driver, or
>	the other way around, is there a kernel_malloc(), kernel_free() ?

>	(copy video memory -> temp memory/process contents -> video memory)
Ganz einfach: simply try using malloc() and free() within kernel:-)
386bsd has a new-style kernel memory allocator, somewhere in the sources
(never ask me) you'll find a comment. If you're interested in more, i
can email you my lp driver which allocates some kernel buffers.


	Viele Gruesse
	J"org

--
J"org Wunsch, TCD GmbH Dresden, R"ahnitzgasse 18, D-O-8060 Dresden
                                                              \     ~.~. 
	joerg_wunsch%bonnie@hadrian.hrz.tu-chemnitz.de         \   ~  | ~ 
	voice: +49-351-5965 137                                 \    ===