|
ginnOS
The reference: libc, the libraries and the kernel
|
#include "flock.h"#include "kernel/errno.h"#include "kernel/process/process.h"#include "kernel/signal/signal.h"#include "kernel/sync/spinlock.h"#include "kernel/sync/wait_queue.h"Macros | |
| #define | FLOCK_MAX 128 |
Functions | |
| int32_t | flock_apply (file_t *file, uint32_t operation) |
| take, change or release a description's lock. | |
| void | flock_release (file_t *file) |
| release the lock a description holds (its last descriptor closed). | |
| #define FLOCK_MAX 128 |
take, change or release a description's lock.
| file | a filesystem file. |
| operation | LOCK_SH or LOCK_EX (with LOCK_NB), or LOCK_UN. |
| void flock_release | ( | file_t * | file | ) |
release the lock a description holds (its last descriptor closed).