driver question
Alex Crain
alex at wolf.umbc.edu
Fri Apr 14 03:38:55 AEST 1989
In article <1893 at umbc3.UMBC.EDU>, alex at wolf.umbc.edu (Alex Crain) writes:
> Does anyone know how to do dynamic page allocation in unix-pc
> device drivers? Specifically, I want to use rminit(), rmalloc() and
> rmfree(), but I'm having trouble understanding exactly how they work, and
> I want to avoid the crash-n-burn method of finding out.
You can't do dynamic page allocation rith the rm*() functions. These
functions simple impose a first fit allocation algorithm over a block of
existing memory. They are useful, but not in your case because you want to
allocate fixed size buffers, so you're better off using a freelist allocation
scheme. If you like, email me and I'll send you some sample code.
> :alex
> Alex Crain
> Systems Programmer alex at umbc3.umbc.edu
> Univ Md Baltimore County umbc3.umbc.edu!nerwin!alex
I'm hoping that If I keep this conversation going, somebody might
jump in...
:alex
Alex Crain
Systems Programmer alex at umbc3.umbc.edu
Univ Md Baltimore County umbc3.umbc.edu!nerwin!alex
More information about the Unix-pc.general
mailing list