LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-21-2006, 12:12 AM   #1
Ojp
LQ Newbie
 
Registered: Mar 2006
Location: Mexico
Distribution: Red Hat EL 4
Posts: 12

Rep: Reputation: 0
¿IPC inside Kernel? (help)


Hi.
I have a kernel modules an is woring fine. Now, I need to communicate my module with a other process(outside) with a pipe (it's more easy) . Problem: Common IPCs don't work in kernel level (pipes, shared memory, etc.).

Anyone can help me with?, I will acept any class of ideas with a communication outside of kernel. Thanks (and sorry with my worse english).
 
Old 03-21-2006, 01:04 AM   #2
cppkid
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
Just look at IOCTL for communicating with kernel.
 
Old 03-21-2006, 01:11 AM   #3
cppkid
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
Also you copy your data from user to kernel and kernel to user by using these methods.

copy_to_user()
copy_from_user()

But i think you have to code the things in kernel module..
 
Old 03-21-2006, 02:17 PM   #4
Ojp
LQ Newbie
 
Registered: Mar 2006
Location: Mexico
Distribution: Red Hat EL 4
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks.
About "Copying data to/from user space", itś sound great, i found some information but i need search for more.

Now, about IOCTL, while i looked for this, i found accidentally the /proc filesystem and the functions create_proc_entry(), etc... it's a good idea use this?, what do you think?
 
Old 03-21-2006, 02:35 PM   #5
Ojp
LQ Newbie
 
Registered: Mar 2006
Location: Mexico
Distribution: Red Hat EL 4
Posts: 12

Original Poster
Rep: Reputation: 0
I found more info about /proc file system and Copying data to/from user space and....... wow, this make the things more easy, both have a relationship. Thank you, thank you so much.
 
  


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
Kernel IPC question rickthemick Linux - General 2 10-30-2005 09:23 AM
iptables inside client to inside host with outside DNS or IP - Help! linuxhelp2 Linux - Networking 1 10-15-2005 06:19 AM
IPC between kernel and user mode bun_zee Programming 1 06-04-2004 12:08 PM
Kernel Inside Out unixbrain Linux - Newbie 6 09-23-2003 06:18 AM
IPC Shared Memory support in kernel? stevho Linux - General 1 01-17-2002 07:48 PM

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

All times are GMT -5. The time now is 12:16 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