LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-15-2003, 08:08 PM   #1
BoldKiller
Member
 
Registered: Apr 2002
Location: Montreal, Quebec
Distribution: Debian, Gentoo, RedHat
Posts: 142

Rep: Reputation: 15
Message Queues


First:
I was just wondering if message queues were acessible from kernel space?
If they are, do they require some special code or is it as direct as if it was from user space?

Second:
Anyone know if message queues would behave well in a real time environnement. In other word, do they run fast enough or should I really use real time IPC (like FIFO or mailbox from RTAI).

thank you for your opinion.
 
Old 05-28-2003, 05:40 PM   #2
BoldKiller
Member
 
Registered: Apr 2002
Location: Montreal, Quebec
Distribution: Debian, Gentoo, RedHat
Posts: 142

Original Poster
Rep: Reputation: 15
Let m reformulate the question.

In order to use message queue, I must use msgget() to open the queue.

To use msgget() I must give it an IPC key. That key is obtain by using ftok().

ftok() uses a path (/usr/app) to generate the key.

The question is:
How can I use ftok in kernel space? Can a kernel module acces the file structure?? I taught that no, but someone assure that I could.

Second question:
Is there an alternative to ftok()?

Third question:
I have stumbled on a command called kmsgget() wich seem to be kernel side message queue handling. But I think it was for a AIX system. Is that command implemented in linux.

Thanks in advance for any help
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
POSIX message queues(Solaris) to SYS V message queues(Linux) devershetty Programming 1 01-22-2007 10:15 AM
message queues - please some checkup from the pros kirmet Programming 4 09-20-2005 08:40 AM
Posix Message queues? gdipierro Programming 20 07-26-2005 04:59 PM
Message Queues rag_mg Programming 1 05-08-2005 08:00 AM
POSIX message queues... infamous41md Programming 6 05-25-2004 02:53 PM


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