My Project
|
#include "kernel/mod2.h"
#include <semaphore.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "simpleipc.h"
#include "Singular/cntrlc.h"
#include "reporter/si_signals.h"
Go to the source code of this file.
Functions | |
int | sipc_semaphore_init (int id, int count) |
int | sipc_semaphore_exists (int id) |
int | sipc_semaphore_acquire (int id) |
int | sipc_semaphore_try_acquire (int id) |
int | sipc_semaphore_release (int id) |
int | sipc_semaphore_get_value (int id) |
int | simpleipc_cmd (char *cmd, int id, int v) |
Variables | |
VAR sipc_sem_t * | semaphore [SIPC_MAX_SEMAPHORES] |
VAR int | sem_acquired [SIPC_MAX_SEMAPHORES] |
int simpleipc_cmd | ( | char * | cmd, |
int | id, | ||
int | v | ||
) |
Definition at line 167 of file semaphore.c.
int sipc_semaphore_acquire | ( | int | id | ) |
Definition at line 94 of file semaphore.c.
int sipc_semaphore_exists | ( | int | id | ) |
Definition at line 88 of file semaphore.c.
int sipc_semaphore_get_value | ( | int | id | ) |
Definition at line 153 of file semaphore.c.
int sipc_semaphore_init | ( | int | id, |
int | count | ||
) |
Definition at line 31 of file semaphore.c.
int sipc_semaphore_release | ( | int | id | ) |
Definition at line 135 of file semaphore.c.
int sipc_semaphore_try_acquire | ( | int | id | ) |
Definition at line 112 of file semaphore.c.
VAR int sem_acquired[SIPC_MAX_SEMAPHORES] |
Definition at line 25 of file semaphore.c.
VAR sipc_sem_t* semaphore[SIPC_MAX_SEMAPHORES] |
Definition at line 24 of file semaphore.c.