Home
last modified time | relevance | path

Searched refs:rw (Results 1 – 25 of 532) sorted by relevance

12345678910>>...22

/illumos-gate/usr/src/lib/libnisdb/
H A Dnisdb_rw.c79 rw->writer_count = rw->reader_count = rw->reader_blocked = 0; in __nisdb_rwinit()
80 rw->writer.id = rw->reader.id = INV_PTHREAD_ID; in __nisdb_rwinit()
81 rw->writer.count = rw->reader.count = 0; in __nisdb_rwinit()
82 rw->writer.next = rw->reader.next = 0; in __nisdb_rwinit()
123 if (rw->destroyed == 0 && rw->reader_count == 0) { in __nisdb_rw_readlock_ok()
140 if (rw == 0 || rw->destroyed != 0) in __nisdb_rw_force_writelock()
150 if (rw->destroyed == 0 && rw->reader_count == 0) { in __nisdb_rw_force_writelock()
221 if (rw->reader_count == rw->reader_blocked) in __nisdb_wlock_trylock()
717 rw, rw->writer.id, rw->writer.count); in __nisdb_lock_report()
722 rw, rw->writer_count); in __nisdb_lock_report()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Drwlock_emul.c12 rw->eMrw_owner, rw, rw->eMrw_magic);
18 rw->eMrw_owner, rw, rw->eMrw_read, rw->eMrw_write);
34 rw->eMrw_owner, rw, rw->eMrw_magic);
40 rw->eMrw_owner, rw, rw->eMrw_read, rw->eMrw_write);
56 rw->eMrw_owner, rw, rw->eMrw_magic);
62 rw->eMrw_owner, rw, rw->eMrw_read, rw->eMrw_write);
77 rw->eMrw_owner, rw, rw->eMrw_magic);
82 rw->eMrw_owner, rw, rw->eMrw_read, rw->eMrw_write);
101 rw->eMrw_owner, rw, rw->eMrw_magic);
119 rw->eMrw_owner, rw, rw->eMrw_magic);
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Drwstlock.c68 if (rw == RW_READER || rw == RW_READER_STARVEWRITER) { in rwst_enter_common()
96 LOCKSTAT_RECORD(LS_RW_ENTER_ACQUIRE, l, rw); in rwst_enter_common()
98 ASSERT(rw == RW_WRITER); in rwst_enter_common()
152 rwst_enter(rwstlock_t *l, krw_t rw) in rwst_enter() argument
154 (void) rwst_enter_common(l, rw, 0); in rwst_enter()
158 rwst_enter_sig(rwstlock_t *l, krw_t rw) in rwst_enter_sig() argument
160 return (rwst_enter_common(l, rw, RWST_SIG)); in rwst_enter_sig()
164 rwst_tryenter(rwstlock_t *l, krw_t rw) in rwst_tryenter() argument
170 rwst_lock_held(rwstlock_t *l, krw_t rw) in rwst_lock_held() argument
172 if (rw != RW_WRITER) in rwst_lock_held()
[all …]
H A Drwlock.c253 rw_locked(rwlock_impl_t *lp, krw_t rw) in rw_locked() argument
257 if (rw == RW_READER || rw == RW_READER_STARVEWRITER) in rw_locked()
260 if (rw == RW_WRITER) in rw_locked()
274 rw_enter_sleep(rwlock_impl_t *lp, krw_t rw) in rw_enter_sleep() argument
282 if (rw == RW_READER) { in rw_enter_sleep()
286 } else if (rw == RW_READER_STARVEWRITER) { in rw_enter_sleep()
348 if (rw != RW_WRITER) { in rw_enter_sleep()
370 ASSERT(rw_locked(lp, rw)); in rw_enter_sleep()
527 rw_tryenter(krwlock_t *rwlp, krw_t rw) in rw_tryenter() argument
532 if (rw != RW_WRITER) { in rw_tryenter()
[all …]
H A Dfbio.c64 fbread(vnode_t *vp, offset_t off, uint_t len, enum seg_rw rw, in fbread() argument
81 MAXBSIZE, SM_LOCKPROTO, rw); in fbread()
84 off & (offset_t)MAXBMASK, MAXBSIZE, 0, rw); in fbread()
91 err = segmap_fault(kas.a_hat, segkmap, raddr, rsize, F_SOFTLOCK, rw); in fbread()
152 #define FBCOMMON(fbp, rw, flags, howtoreturn) \ argument
159 (void) segmap_fault(kas.a_hat, segkmap, addr, size, F_SOFTUNLOCK, rw); \
166 fbrelse(struct fbuf *fbp, enum seg_rw rw) in fbrelse() argument
168 FBCOMMON(fbp, rw, 0, (void)) in fbrelse()
H A Dwatchpoint.c109 rw_to_prot(enum seg_rw rw) in rw_to_prot() argument
111 switch (rw) { in rw_to_prot()
128 rw_to_index(enum seg_rw rw) in rw_to_index() argument
130 switch (rw) { in rw_to_index()
165 int prot_rw = rw_to_prot(rw); in pr_do_mappage()
166 int xrw = rw_to_index(rw); in pr_do_mappage()
429 switch (rw) { in pr_is_watchpage_as()
450 switch (rw) { in pr_is_watchpage_as()
497 enum seg_rw rw) in pr_is_watchpoint() argument
508 switch (rw) { in pr_is_watchpoint()
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfksmbfs_rwlock.c59 smbfs_rw_enter_sig(smbfs_rwlock_t *l, krw_t rw, int intr) in smbfs_rw_enter_sig() argument
70 ASSERT(rw == RW_READER || rw == RW_WRITER); in smbfs_rw_enter_sig()
72 } else if (rw == RW_READER) { in smbfs_rw_enter_sig()
94 ASSERT(rw == RW_WRITER); in smbfs_rw_enter_sig()
132 smbfs_rw_tryenter(smbfs_rwlock_t *l, krw_t rw) in smbfs_rw_tryenter() argument
142 ASSERT(rw == RW_READER || rw == RW_WRITER); in smbfs_rw_tryenter()
144 } else if (rw == RW_READER) { in smbfs_rw_tryenter()
155 ASSERT(rw == RW_WRITER); in smbfs_rw_tryenter()
208 smbfs_rw_lock_held(smbfs_rwlock_t *l, krw_t rw) in smbfs_rw_lock_held() argument
211 if (rw == RW_READER) in smbfs_rw_lock_held()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_rwlock.c59 smbfs_rw_enter_sig(smbfs_rwlock_t *l, krw_t rw, int intr) in smbfs_rw_enter_sig() argument
70 ASSERT(rw == RW_READER || rw == RW_WRITER); in smbfs_rw_enter_sig()
72 } else if (rw == RW_READER) { in smbfs_rw_enter_sig()
104 ASSERT(rw == RW_WRITER); in smbfs_rw_enter_sig()
149 smbfs_rw_tryenter(smbfs_rwlock_t *l, krw_t rw) in smbfs_rw_tryenter() argument
159 ASSERT(rw == RW_READER || rw == RW_WRITER); in smbfs_rw_tryenter()
161 } else if (rw == RW_READER) { in smbfs_rw_tryenter()
172 ASSERT(rw == RW_WRITER); in smbfs_rw_tryenter()
225 smbfs_rw_lock_held(smbfs_rwlock_t *l, krw_t rw) in smbfs_rw_lock_held() argument
228 if (rw == RW_READER) in smbfs_rw_lock_held()
[all …]
/illumos-gate/usr/src/uts/sparc/v9/fpu/
H A Duword.c212 uint32_t res, *addr, *rw; in read_iureg() local
224 rw = (uint32_t *)(uintptr_t)rw32; in read_iureg()
226 addr = (uint32_t *)&rw[n - 16]; in read_iureg()
233 addr = (uint64_t *)&rw[n - 16]; in read_iureg()
242 addr = (ulong_t *)&rw[n - 16]; in read_iureg()
272 uint32_t res, *addr, *rw; in write_iureg() local
284 rw = (uint32_t *)(uintptr_t)rw32; in write_iureg()
286 addr = &rw[n - 16]; in write_iureg()
290 uint64_t *addr, *rw = (uint64_t *) in write_iureg() local
294 addr = &rw[n - 16]; in write_iureg()
[all …]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipfs.c135 rw = 0;
138 rw = 1;
142 rw = 1;
192 rw = 0;
195 rw = 1;
199 rw = 1;
267 rw = 0;
271 rw = 2;
292 rw = 1;
296 rw = 3;
[all …]
/illumos-gate/usr/src/test/util-tests/tests/chown/files/
H A Dcout83 -rw-r--r-- root ./dst/file1
4 -rw-r--r-- daemon ./file
7 -rw-r--r-- daemon ./src/file2
9 -rw-r--r-- root ./target
H A Dcout93 -rw-r--r-- daemon ./dst/file1
4 -rw-r--r-- daemon ./file
7 -rw-r--r-- daemon ./src/file2
9 -rw-r--r-- daemon ./target
H A Dcout03 -rw-r--r-- root ./dst/file1
4 -rw-r--r-- daemon ./file
7 -rw-r--r-- root ./src/file2
9 -rw-r--r-- daemon ./target
H A Dcout13 -rw-r--r-- root ./dst/file1
4 -rw-r--r-- daemon ./file
7 -rw-r--r-- root ./src/file2
9 -rw-r--r-- daemon ./target
H A Dcout103 -rw-r--r-- root ./dst/file1
4 -rw-r--r-- daemon ./file
7 -rw-r--r-- daemon ./src/file2
9 -rw-r--r-- daemon ./target
H A Dcout113 -rw-r--r-- root ./dst/file1
4 -rw-r--r-- daemon ./file
7 -rw-r--r-- daemon ./src/file2
9 -rw-r--r-- root ./target
H A Dcout23 -rw-r--r-- root ./dst/file1
4 -rw-r--r-- daemon ./file
7 -rw-r--r-- root ./src/file2
9 -rw-r--r-- root ./target
H A Dcout33 -rw-r--r-- root ./dst/file1
4 -rw-r--r-- daemon ./file
7 -rw-r--r-- daemon ./src/file2
9 -rw-r--r-- root ./target
H A Dcout43 -rw-r--r-- root ./dst/file1
4 -rw-r--r-- daemon ./file
7 -rw-r--r-- daemon ./src/file2
9 -rw-r--r-- root ./target
H A Dcout53 -rw-r--r-- root ./dst/file1
4 -rw-r--r-- daemon ./file
7 -rw-r--r-- daemon ./src/file2
9 -rw-r--r-- daemon ./target
H A Dcout63 -rw-r--r-- root ./dst/file1
4 -rw-r--r-- daemon ./file
7 -rw-r--r-- daemon ./src/file2
9 -rw-r--r-- root ./target
H A Dcout73 -rw-r--r-- daemon ./dst/file1
4 -rw-r--r-- daemon ./file
7 -rw-r--r-- daemon ./src/file2
9 -rw-r--r-- daemon ./target
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/client/helptools/
H A DparseMain.java558 rw.fileheader(); in main()
563 rw.delimiter(); in main()
564 rw.commentStart(); in main()
569 rw.comment(commentLine); in main()
571 rw.commentEnd(); in main()
572 rw.delimiter(); in main()
621 rw.setTag(tagName); in main()
622 rw.tag(tagName); in main()
627 rw.delimiter(); in main()
630 rw.footer(); in main()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Drrwlock.c231 rrw_enter(rrwlock_t *rrl, krw_t rw, void *tag) in rrw_enter() argument
233 if (rw == RW_READER) in rrw_enter()
284 rrw_held(rrwlock_t *rrl, krw_t rw) in rrw_held() argument
289 if (rw == RW_WRITER) { in rrw_held()
342 rrm_enter(rrmlock_t *rrl, krw_t rw, void *tag) in rrm_enter() argument
344 if (rw == RW_READER) in rrm_enter()
389 rrm_held(rrmlock_t *rrl, krw_t rw) in rrm_held() argument
391 if (rw == RW_WRITER) { in rrm_held()
392 return (rrw_held(&rrl->locks[0], rw)); in rrm_held()
394 return (rrw_held(&rrl->locks[RRM_TD_LOCK()], rw)); in rrm_held()
/illumos-gate/usr/src/boot/common/
H A Dbcache.c185 write_strategy(void *devdata, int rw, daddr_t blk, size_t size, in write_strategy() argument
200 return (dd->dv_strategy(dd->dv_devdata, rw, blk, size, buf, rsize)); in write_strategy()
209 read_strategy(void *devdata, int rw, daddr_t blk, size_t size, in read_strategy() argument
291 if ((rw & F_NORA) == F_NORA) in read_strategy()
316 rw &= F_MASK; in read_strategy()
317 result = dd->dv_strategy(dd->dv_devdata, rw, p_blk, in read_strategy()
358 bcache_strategy(void *devdata, int rw, daddr_t blk, size_t size, in bcache_strategy() argument
378 rw &= F_MASK; in bcache_strategy()
379 return (dd->dv_strategy(dd->dv_devdata, rw, blk, size, buf, in bcache_strategy()
383 switch (rw & F_MASK) { in bcache_strategy()
[all …]

12345678910>>...22