mmap with /proc-file in kernel-mode

Hi there,

I have troubles with mmapping a created /proc-file in the kernel-mode. The file-creation is working fine, and I have written all the needed functions like in book "Linux device drivers" described. I would like to use create_proc_entry() with remap_pfn_range() but I can't get no entry point from the init-function to the other functions. In other words: mmap isn't even executed. Does anyone know, how this should work? Am I blind or dumb? ;-)

Thanks for every hint!
mmap should return ENODEV if the underlying file system doesn't support mmap.

Wait -- are you doing this from within the kernel itself?
First - many thanks for your fast reply!

Yes, this is been done in kernel-mode, and as far as i know, mmap should be supported.
My problem is: how can i "bind" the file to the mmap-functions? In user-mode this could be done by mmap()-call, but in kernel-mode there is no such function (or it is unknown by me).
How is this a C++ question? Shouldn't you be asking this on the LKML?
Topic archived. No new replies allowed.