* Reference counts versus PG_locked and memory management....
@ 2001-08-15 15:48 mheinz
0 siblings, 0 replies; only message in thread
From: mheinz @ 2001-08-15 15:48 UTC (permalink / raw)
I'm in the process of porting a driver to Linux. The author of the driver conveniently broke it into os-dependent and independent sections.
One of the things in the "OS" dependent section is a routine to lock a section of memory presumably to be used for DMA.
So, what I want to do is this: given a pointer to a previously kmalloc'ed block, and the length of that block, I want to (a) identify each page associated with the block and (b) lock each page. It appears that I can lock the page either by incrementing it's reference count, or by setting the PG_locked flag for the page.
Which method is preferred? Is there another method I should be using instead?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-08-15 15:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-15 15:48 Reference counts versus PG_locked and memory management mheinz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®