Path: utzoo!utgpu!attcan!uunet!umbc3!wolf.umbc.edu!alex From: alex@wolf.umbc.edu (Alex Crain) Newsgroups: unix-pc.general Subject: Re: driver question Message-ID: <1905@umbc3.UMBC.EDU> Date: 13 Apr 89 17:38:55 GMT References: <1893@umbc3.UMBC.EDU> Sender: newspost@umbc3.UMBC.EDU Lines: 25 In article <1893@umbc3.UMBC.EDU>, alex@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@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@umbc3.umbc.edu Univ Md Baltimore County umbc3.umbc.edu!nerwin!alex