JLChen
2020-12-10 a8c5f79b0d93adfa7f23601dd0fee30edc14f0d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/**
 * @file re_lock.h  Interface to locking functions
 *
 * Copyright (C) 2010 Creytiv.com
 */
 
 
struct lock;
 
int  lock_alloc(struct lock **lp);
 
void lock_read_get(struct lock *l);
void lock_write_get(struct lock *l);
 
int  lock_read_try(struct lock *l);
int  lock_write_try(struct lock *l);
 
void lock_rel(struct lock *l);