Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 08-28-2011, 08:43 AM   #1
Senior Member
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 209Reputation: 209Reputation: 209
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:
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

Last edited by jhwilliams; 08-28-2011 at 08:44 AM.
Old 08-29-2011, 01:27 AM   #2
LQ 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:

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

1 members found this post helpful.


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

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

All times are GMT -5. The time now is 12:58 PM.

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