[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changes in vm_operations_struct 2.2.x => 2.4.x
Martin Maletinsky wrote (Donnerstag, 9. August 2001 09:02):
> My module allocates a block of memory, and exports that block to user
> space processes, by registering as a character device and
> implementing a mmap file operation, so that user space processes can
> map that memory block into their virtual address space by calling
> mmap().
Would it be possible to do this with shared memory (shmget/shmat)?
What's the advantage of making a device and mmaping it? Sounds
more complicated. (I did only user-space programs as yet, so forgive me
my naivity)
Thomas.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/