home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / question / 13640 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.8 KB

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