Searched refs:lock_type (Results 1 - 16 of 16) sorted by relevance

/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/hfs/
H A Dbnode.c174 * int lock_type: the type of lock desired
181 * 'lock_type' is a valid hfs_lock_t
183 * The 'count' field of 'bn' is incremented by one. If 'lock_type'
186 void hfs_bnode_lock(struct hfs_bnode_ref *bnr, int lock_type) argument
190 if ((lock_type == bnr->lock_type) || !bn) {
194 if (bnr->lock_type == HFS_LOCK_WRITE) {
198 switch (lock_type) {
209 switch (bnr->lock_type) {
231 switch (bnr->lock_type) {
414 hfs_bnode_find(struct hfs_btree *tree, hfs_u32 node, int lock_type) argument
[all...]
H A Dbrec.c73 * The child is obtained with the same 'lock_type' field as its
82 int lock_type; local
96 lock_type = elem->bnr.lock_type;
107 elem->bnr = hfs_bnode_find(brec->tree, node, lock_type);
139 * lock_type argument of HFS_LOCK_WRITE. If one of those calls
166 * int lock_type: the type of access to get to the nodes.
192 int lock_type = flags & HFS_LOCK_MASK; local
196 head->bnr = hfs_bnode_find(tree, 0, lock_type);
201 root->bnr = hfs_bnode_find(tree, tree->bthRoot, lock_type);
[all...]
H A Dbfind.c47 * The lock_type argument to be used when calling hfs_bnode_find().
287 belem->bnr.lock_type);
H A Dballoc.c56 retval.lock_type = HFS_LOCK_NONE;
H A Dhfs.h388 int lock_type; member in struct:hfs_bnode_ref
/asus-wl-520gu-7.0.1.45/src/router/samba/source/locking/
H A Dbrlock.c51 enum brl_type lock_type; member in struct:lock_struct
101 if (lck1->lock_type == PENDING_LOCK || lck2->lock_type == PENDING_LOCK )
104 if (lck1->lock_type == READ_LOCK && lck2->lock_type == READ_LOCK) {
109 lck2->lock_type == READ_LOCK && lck1->fnum == lck2->fnum) {
125 if (lck1->lock_type == PENDING_LOCK || lck2->lock_type == PENDING_LOCK )
128 if (lck1->lock_type == READ_LOCK && lck2->lock_type
306 brl_lock(SMB_DEV_T dev, SMB_INO_T ino, int fnum, uint16 smbpid, pid_t pid, uint16 tid, br_off start, br_off size, enum brl_type lock_type, BOOL *my_lock_ctx) argument
553 brl_locktest(SMB_DEV_T dev, SMB_INO_T ino, int fnum, uint16 smbpid, pid_t pid, uint16 tid, br_off start, br_off size, enum brl_type lock_type, int check_self) argument
[all...]
H A Dposix.c49 int lock_type; member in struct:posix_lock
297 static const char *posix_lock_type_name(int lock_type) argument
299 return (lock_type == F_RDLCK) ? "READ" : "WRITE";
352 static BOOL add_posix_lock_entry(files_struct *fsp, SMB_OFF_T start, SMB_OFF_T size, int lock_type, size_t *pentry_num) argument
372 pl.lock_type = lock_type;
392 fsp->fsp_name, posix_lock_type_name(lock_type), start, size,
494 posix_lock_type_name(pl->lock_type), pl->start, pl->size,
512 static int map_posix_lock_type( files_struct *fsp, enum brl_type lock_type) argument
514 if((lock_type
690 is_posix_locked(files_struct *fsp, SMB_BIG_UINT u_offset, SMB_BIG_UINT u_count, enum brl_type lock_type) argument
956 set_posix_lock(files_struct *fsp, SMB_BIG_UINT u_offset, SMB_BIG_UINT u_count, enum brl_type lock_type) argument
[all...]
H A Dlocking.c47 static const char *lock_type_name(enum brl_type lock_type) argument
49 return (lock_type == READ_LOCK) ? "READ" : "WRITE";
61 enum brl_type lock_type, BOOL check_self)
74 offset, count, lock_type, check_self);
86 ret = is_posix_locked(fsp, offset, count, lock_type);
101 SMB_BIG_UINT count,SMB_BIG_UINT offset,enum brl_type lock_type, BOOL *my_lock_ctx)
111 lock_type_name(lock_type), offset, count, fsp->fsp_name ));
117 lock_type, my_lock_ctx);
127 if (!set_posix_lock(fsp, offset, count, lock_type)) {
156 SMB_BIG_UINT count,SMB_BIG_UINT offset,enum brl_type lock_type, BOO
59 is_locked(files_struct *fsp,connection_struct *conn, SMB_BIG_UINT count,SMB_BIG_UINT offset, enum brl_type lock_type, BOOL check_self) argument
100 do_lock(files_struct *fsp,connection_struct *conn, uint16 lock_pid, SMB_BIG_UINT count,SMB_BIG_UINT offset,enum brl_type lock_type, BOOL *my_lock_ctx) argument
155 do_lock_spin(files_struct *fsp,connection_struct *conn, uint16 lock_pid, SMB_BIG_UINT count,SMB_BIG_UINT offset,enum brl_type lock_type, BOOL *my_lock_ctx) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/router/samba/source/torture/
H A Dlocktest.c58 enum brl_type lock_type; member in struct:record
105 enum brl_type lock_type,
124 lock_type==READ_LOCK?"R":"W",
279 enum brl_type op = rec->lock_type;
444 recorded[n].lock_type = READ_LOCK;
446 recorded[n].lock_type = WRITE_LOCK;
527 recorded[i].lock_type,
104 print_brl(SMB_DEV_T dev, SMB_INO_T ino, int pid, enum brl_type lock_type, br_off start, br_off size) argument
H A Dlocktest2.c139 enum brl_type lock_type,
144 lock_type==READ_LOCK?"R":"W",
138 print_brl(SMB_DEV_T dev, SMB_INO_T ino, int pid, enum brl_type lock_type, br_off start, br_off size) argument
/asus-wl-520gu-7.0.1.45/src/router/samba/source/libsmb/
H A Dclifile.c606 uint32 offset, uint32 len, int timeout, enum brl_type lock_type)
622 SCVAL(cli->outbuf,smb_vwv3,(lock_type == READ_LOCK? 1 : 0));
703 SMB_BIG_UINT offset, SMB_BIG_UINT len, int timeout, enum brl_type lock_type)
710 return cli_lock(cli, fnum, offset, len, timeout, lock_type);
713 ltype = (lock_type == READ_LOCK? 1 : 0);
605 cli_lock(struct cli_state *cli, int fnum, uint32 offset, uint32 len, int timeout, enum brl_type lock_type) argument
702 cli_lock64(struct cli_state *cli, int fnum, SMB_BIG_UINT offset, SMB_BIG_UINT len, int timeout, enum brl_type lock_type) argument
/asus-wl-520gu-7.0.1.45/src/router/samba/source/passdb/
H A Dpdb_smbpasswd.c181 int lock_type = F_RDLCK; local
191 lock_type = F_RDLCK;
195 lock_type = F_WRLCK;
215 lock_type = F_WRLCK;
245 if (!pw_file_lock(fileno(fp), lock_type, 5, lock_depth)) {
/asus-wl-520gu-7.0.1.45/src/linux/linux/fs/
H A Dlocks.c656 static int flock_lock_file(struct file *filp, unsigned int lock_type, argument
664 int unlock = (lock_type == F_UNLCK);
671 new_fl = flock_make_lock(filp, lock_type);
682 if (lock_type == fl->fl_type)
/asus-wl-520gu-7.0.1.45/src/router/samba/source/include/
H A Dsmb.h720 enum brl_type lock_type, \
724 enum brl_type lock_type, \
/asus-wl-520gu-7.0.1.45/src/router/samba/source/utils/
H A Dstatus.c148 enum brl_type lock_type,
161 lock_type==READ_LOCK?"R":"W",
147 print_brl(SMB_DEV_T dev, SMB_INO_T ino, int pid, enum brl_type lock_type, br_off start, br_off size) argument
/asus-wl-520gu-7.0.1.45/src/router/vsftpd/
H A Dsysutil.c109 static int lock_internal(int fd, int lock_type);
1564 lock_internal(int fd, int lock_type) argument
1570 the_lock.l_type = lock_type;

Completed in 85 milliseconds