Re: How to do a mmap ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 05, 2003 at 01:20:25AM +0100, Jerome de Vivie wrote:
> I'm currently writting a module. I use a file from kernelspace. Instead
> of using "f_op" read/write calls, i would like to mmap this file into
> the kernel memory and use it as a contiguous space.

Using files from kernel mode is policy, while the kernel should only
implement mechanisms. Rethink your design so the file usage is done
where it belongs: userland. This has the nice advantage that you can
get the same information from weird locations like a remote SQL
database by just rewriting the userland backend. There's no way to do
this from kernel.


Erik

-- 
J.A.K. (Erik) Mouw
Email: J.A.K.Mouw@its.tudelft.nl  mouw@nl.linux.org

Attachment: pgp00287.pgp
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux