New NOTIFY trap (IPC call) to send queued notification messages.

The call works. Permission check, restriction of outstanding notifications
to be added. Low level code to make it work from within interrupt handlers
will be added as well.
This commit is contained in:
Jorrit Herder
2005-05-19 14:05:51 +00:00
parent 129b82d207
commit 307c825515
13 changed files with 151 additions and 30 deletions

View File

@@ -31,9 +31,6 @@ _PROTOTYPE( int _syscall, (int _who, int _syscallnr, message *_msgptr) );
_PROTOTYPE( void _loadname, (const char *_name, message *_msgptr) );
_PROTOTYPE( int _len, (const char *_s) );
_PROTOTYPE( void panic, (const char *_message, int _errnum) );
#if 0
_PROTOTYPE( int _sendrec, (int _src_dest, message *_m_ptr) );
#endif
_PROTOTYPE( void _begsig, (int _dummy) );
#endif /* _LIB_H */

View File

@@ -82,7 +82,9 @@
#define NR_NOTIFY_TYPES 5 /* nr of bits in mask */
/* Shorthands for message parameters passed with notifications. */
#define NOTIFY_ARG m2_l1 /* passed for some types */
#define NOTIFY_TYPE m2_i1
#define NOTIFY_FLAGS m2_i2
#define NOTIFY_ARG m2_i3
/*===========================================================================*

View File

@@ -143,9 +143,7 @@ _PROTOTYPE( int ttyslot, (void) );
_PROTOTYPE( int fttyslot, (int _fd) );
_PROTOTYPE( char *crypt, (const char *_key, const char *_salt) );
_PROTOTYPE( int getsysinfo, (int who, int what, void *where) );
#if ENABLE_MESSAGE_STATS
_PROTOTYPE( int mstats, (struct message_statentry *ms, int entries, int reset) );
#endif
_PROTOTYPE( int getprocnr, (int *proc_nr) );
#endif
_PROTOTYPE( int setcache, (int kb));