The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/kernel/ipc.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #ifndef IPC_H
    2 #define IPC_H
    3 
    4 /* This header file defines constants for MINIX inter-process communication.
    5  * These definitions are used in the file proc.c.
    6  */
    7 #include <minix/com.h>
    8 
    9 /* Masks and flags for system calls. */
   10 #define SYSCALL_FUNC    0x0F    /* mask for system call function */
   11 #define SYSCALL_FLAGS   0xF0    /* mask for system call flags */
   12 #define NON_BLOCKING    0x10    /* prevent blocking, return error */
   13 
   14 /* System call numbers that are passed when trapping to the kernel. The 
   15  * numbers are carefully defined so that it can easily be seen (based on 
   16  * the bits that are on) which checks should be done in sys_call().
   17  */
   18 #define SEND               1    /* 0 0 0 1 : blocking send */
   19 #define RECEIVE            2    /* 0 0 1 0 : blocking receive */
   20 #define SENDREC            3    /* 0 0 1 1 : SEND + RECEIVE */
   21 #define NOTIFY             4    /* 0 1 0 0 : nonblocking notify */
   22 #define ECHO               8    /* 1 0 0 0 : echo a message */
   23 
   24 /* The following bit masks determine what checks that should be done. */
   25 #define CHECK_PTR       0x0B    /* 1 0 1 1 : validate message buffer */
   26 #define CHECK_DST       0x05    /* 0 1 0 1 : validate message destination */
   27 #define CHECK_SRC       0x02    /* 0 0 1 0 : validate message source */
   28 #define CHECK_DEADLOCK  0x03    /* 0 0 1 1 : check for deadlock */
   29 
   30 #endif /* IPC_H */

Cache object: 42e5239d360dbfea055a2f935418eb02


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.