LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-27-2010, 09:55 AM   #1
ubfree
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
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.

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? ;-)

Edit: I would like to use create_proc_entry() with remap_pfn_range(). Can someone please give me a hint?

Last edited by ubfree; 10-27-2010 at 01:10 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mmap file in kernel module shreyasw Linux - Newbie 3 09-25-2008 01:04 AM
mmap-ed IO between application in user mode and SCSI driver fails after lk 2.6.15 rongjie Linux - General 0 06-21-2007 01:58 AM
reading /proc file in kernel help needed arunka Programming 2 03-17-2005 05:51 AM
how to open /proc file in RW mode in user mode? cranium2004 Programming 3 03-06-2005 03:03 AM
alsa sound stops in mmap mode with events/0 spike Moloko Debian 0 02-02-2005 06:34 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration