LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 08-28-2011, 07:43 AM   #1
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 206Reputation: 206Reputation: 206
Sys V Message Queues From Kernel Space


Hi there,

I was under the impression that one could write to a Sys V message queue /from kernel space/. However, my references to sys_msgsnd() are showing up unresolved at MODPOST. I'm working with Linux 2.6.31. Is this no longer a preferred approach ... or was it never? Or should this work?

The error I get in particular:
Code:
ERROR: "sys_msgsnd" [drivers/input/misc/mymodule.ko] undefined!
make[3]: *** [__modpost] Error 1
make[2]: *** [modules] Error 2
make[1]: *** [sub-make] Error 2
Thanks!

Last edited by jhwilliams; 08-28-2011 at 07:44 AM.
 
Old 08-29-2011, 12:27 AM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

That's absolutely wrong. The SysV IPCs are primarily intended for *user space*.

This link might suggest a few alternatives for you:

http://people.ee.ethz.ch/~arkeller/l...ace_howto.html

In general, the best design model is:

* If you *can* do something in user space (vs. kernel space) then you probably *should* do it in user space

* Ideally, active requests should come from user space; the kernel should remain passively quiescent until a something is requested of it

IMHO ..
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
POSIX Queues with message type facility of System V queues ehsan_haq98@yahoo.com Programming 2 12-27-2009 11:45 AM
POSIX message queues(Solaris) to SYS V message queues(Linux) devershetty Programming 1 01-22-2007 10:15 AM
Message Queues naga_presin Linux - Networking 1 05-20-2006 03:26 PM
Message Queues rag_mg Programming 1 05-08-2005 08:00 AM
Message Queues BoldKiller Programming 1 05-28-2003 05:40 PM


All times are GMT -5. The time now is 07:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration