home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / minix / 4961 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.5 KB  |  36 lines

  1. Newsgroups: comp.os.minix
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!news.udel.edu!udel!louie!minix
  3. From: "Henrik Schultz, Production Systems Group" <HENRIKS@odin.uniras.dk>
  4. Subject: Re: system call addition
  5. Message-ID: <1992Dec21.121054.18914@udel.edu>
  6. Originator: mmdf@louie.udel.edu
  7. Sender: usenet@udel.edu (USENET News Service)
  8. Nntp-Posting-Host: louie.udel.edu
  9. Organization: University of Delaware
  10. Date: Mon, 21 Dec 1992 13:09:49 GMT
  11. Approved: usenet=relay@louie.udel.EDU
  12. Lines: 22
  13.  
  14. >This may be a really naive question, but it seems (at least outwardly) that
  15. >a simple way of adding a new system call would be simply to assign the name
  16. >of the call (in caps) in <minix/callnr.h> (preferably against an unused slot,
  17. >so as not to have to alter the maxm. # of system calls allowed) and assigning a
  18. >corresponding function in the table.c (of fs, mm. etc., depending on what the
  19. >function of the call is and where I would like to add it) (against of course
  20. >the same number).
  21.  
  22. In my eyes it seems the way to do it. I've just implemented an older
  23. set of routines that allow for a HALT, SHUTDOWN and REBOOT command for
  24. MINIX 1.5.10.
  25. These commands makes use of a REBOOT system call, implemented in mm in
  26. exactly the way that you've described. I just had to recompile mm and build
  27. a new image, and it worked first shot. This call took over an (unused) slot
  28. in the command table though (#51 which is for accounting which probably nobody
  29. ever uses :-)
  30.  
  31. Henrik
  32.  
  33. (henriks@odin.uniras.dk)
  34. -- 
  35. Mail System (MMDF)
  36.