Latest LQ Deal: Linux Power User Bundle
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 05-15-2003, 09:08 PM   #1
Registered: Apr 2002
Location: Montreal, Quebec
Distribution: Debian, Gentoo, RedHat
Posts: 142

Rep: Reputation: 15
Message Queues

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?

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, 06:40 PM   #2
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


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 11:15 AM
message queues - please some checkup from the pros kirmet Programming 4 09-20-2005 09:40 AM
Posix Message queues? gdipierro Programming 20 07-26-2005 05:59 PM
Message Queues rag_mg Programming 1 05-08-2005 09:00 AM
POSIX message queues... infamous41md Programming 6 05-25-2004 03:53 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:32 AM.

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