rt_sem_post(2)

rt_sem_post2

Semaphore 'post' operation

Usage

#define MODULE
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/version.h>
#include <linux/errno.h>
#include rt_ipc.h

int rt_sem_post(rt_sem_t *sem);

Overview

rt_sem_post is the semaphore post (sometimes known as 'give', 'signal', or 'V') operation. If tasks are waiting for the semaphore, the one with the highest priority is allowed to run. sem points to the structure used in the call to rt_sem_create.

Return value

On success, 0 is returned. On failure, a negative value is returned as described below.

Errors

-EINVAL

sem does not point to a valid rt_sem_t.

Author

Jerry Epplin <[email protected]>

From rtlinux 2.0rel-1 in Debian 2.2 (Potato). Parsed by carta from the page's man source.