home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!hacgate!tog-1s!thudg
- From: thudg@tog-1s.hac.com (Tom Hudgins)
- Newsgroups: comp.unix.questions
- Subject: Need help attaching to IPC message queue from kernel driver
- Message-ID: <24092@hacgate.SCG.HAC.COM>
- Date: 19 Nov 92 18:12:49 GMT
- References: <1992Nov13.161242.12168@gill.uucp> <1992Nov17.051627.10815@midway.uchicago.edu> <1992Nov18.115648.17405@newstand.syr.edu>
- Sender: news@hacgate.SCG.HAC.COM
- Organization: Hughes Aircraft Company, Fullerton, CA
- Lines: 27
-
- Hello,
-
- Here's my problem. I have a process which creates an IPC message queue
- which it will then use to send and receive messages to/from other processes.
- It also needs to communicate with a kernel level device driver which is
- used to communicate with another system (via backplane shared memory).
- I can send data to the driver via an ioctl (I don't want the driver
- reading the message queue) but I can't get the driver to attach to the
- message queue set up by the main process to send anything back. I use the
- same key in the driver as I did in the main process (which set up the queue)
- but the driver gets a 0 back from msgget(). According to ipcs, message queue
- 0 is owned by root. When the driver then attempts to send to queue 0
- with msgsnd, I get an error. At this point I don't know which error I'm
- getting but I've looked at the possible errors and I wouldn't know how
- to solve any of them. I should point out that this works ok when I send
- to another user process as opposed to a kernel driver.
-
- My system consists of:
- HP 9000/300 SPU running HP-UX 7.05 (ultimate target is 9000/7xx on 9.0)
- Note that I'm only using the board not a full HP workstation. We have our
- own box which has some other processors in it but they do not affect
- the operation of the HP.
-
-
- Any help would be appreciated. Thanks.
-
- Tom Hudgins thudg@tog-1s.hac.com
-