sys_ipc  [arch/i386/kernel/sys_i386.c]


De-multiplexer for System V IPC calls for messages, semaphores, and shared memory.

Arguments

eax 117
ebx Specifies which IPC function to invoke. Supported functions are as follows (click on the function name for a detailed information about it):
SEMOP Perform operations on selected members of a semaphore set.
SEMGET Get semaphore set identifier.
SEMCTL Perform semaphore control operations.
SEMTIMEDOP Perform operations on selected members of a semaphore set within a particular time frame.
MSGSND Send message(s) to a message queue.
MSGRCV Receive message(s) from a message queue.
MSGGET Get a message queue identifier.
MSGCTL Perform message queue control operation.
SHMAT Attach a shared memory segment.
SHMDT Detach a shared memory segment.
SHMGET Get identifier of -or- allocate a shared memory segment.
SHMCTL Perform shared memory segment operations.
ecx First parameter to be passed to the specified function. See the documentation about desired function for more info.
edx Second parameter to be passed to the specified function. See the documentation about desired function for more info.
esi Third parameter to be passed to the specified function. See the documentation about desired function for more info.
edi Fourth parameter to be passed to the specified function. See the documentation about desired function for more info.
ebp Fifth parameter to be passed to the specified function. See the documentation about desired function for more info.

Return values

The return values depend on the particular function used (see above). This system call will fail with -ENOSYS if an invalid function was specified in ebx.

Remarks

See samples/ipc/ for example applications.

Compatibility

n/a