23 #ifndef __LXC_LXCLOCK_H 24 #define __LXC_LXCLOCK_H 27 #include <semaphore.h> 35 #define F_OFD_GETLK 36 39 #define F_OFD_SETLK 37 43 #define F_OFD_SETLKW 38 46 #define LXC_LOCK_ANON_SEM 1 47 #define LXC_LOCK_FLOCK 2 Definition: lxccontainer.h:64
void container_disk_unlock(struct lxc_container *c)
Unlock the containers disk data.
int fd
Definition: lxclock.h:60
sem_t * sem
Definition: lxclock.h:57
int container_disk_lock(struct lxc_container *c)
Lock the containers disk data.
struct lxc_lock * lxc_newlock(const char *lxcpath, const char *name)
Create a new (unlocked) lock.
char * fname
Definition: lxclock.h:61
short type
Definition: lxclock.h:54
struct lxc_lock::@4::@5 f
void container_mem_unlock(struct lxc_container *c)
Unlock the containers memory.
void process_unlock(void)
Unlock the current process.
int container_mem_lock(struct lxc_container *c)
Lock the containers memory.
void process_lock(void)
Lock the current process.
int lxclock(struct lxc_lock *lock, int timeout)
Take an existing lock.
int lxcunlock(struct lxc_lock *lock)
Unlock specified lock previously locked using lxclock().
void lxc_putlock(struct lxc_lock *lock)
Free a lock created by lxc_newlock().