Home
last modified time | relevance | path

Searched refs:nlocks (Results 1 – 7 of 7) sorted by relevance

/illumos-gate/usr/src/lib/libc/port/threads/
H A Drwlock.c56 uint_t nlocks; in rwl_entry() local
61 if ((nlocks = self->ul_rdlockcnt) != 0) in rwl_entry()
64 nlocks = 1; in rwl_entry()
68 for (; nlocks; nlocks--, readlockp++) { in rwl_entry()
83 if ((nlocks = self->ul_rdlockcnt) == 0) { in rwl_entry()
88 self->ul_rdlockcnt = nlocks = NLOCKS; in rwl_entry()
89 readlockp = lmalloc(nlocks * sizeof (readlock_t)); in rwl_entry()
105 readlockp = lmalloc(nlocks * 2 * sizeof (readlock_t)); in rwl_entry()
107 nlocks * sizeof (readlock_t)); in rwl_entry()
108 lfree(self->ul_readlock.array, nlocks * sizeof (readlock_t)); in rwl_entry()
[all …]
H A Dsynch.c3053 uint_t nlocks; in find_lock_entry() local
3055 if ((nlocks = self->ul_heldlockcnt) != 0) in find_lock_entry()
3058 nlocks = 1; in find_lock_entry()
3062 for (; nlocks; nlocks--, lockptr++) { in find_lock_entry()
3077 if ((nlocks = self->ul_heldlockcnt) == 0) { in find_lock_entry()
3082 self->ul_heldlockcnt = nlocks = INITIAL_LOCKS; in find_lock_entry()
3083 lockptr = lmalloc(nlocks * sizeof (mutex_t *)); in find_lock_entry()
3098 lockptr = lmalloc(nlocks * 2 * sizeof (mutex_t *)); in find_lock_entry()
3100 nlocks * sizeof (mutex_t *)); in find_lock_entry()
3101 lfree(self->ul_heldlocks.array, nlocks * sizeof (mutex_t *)); in find_lock_entry()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dstrsubr.h840 int nlocks = (stp)->sd_nciputctrl; \
842 for (i = 0; i <= nlocks; i++) { \
852 int nlocks = (stp)->sd_nciputctrl; \
854 for (i = 0; i <= nlocks; i++) { \
864 int nlocks = (sq)->sq_nciputctrl; \
867 for (i = 0; i <= nlocks; i++) { \
877 int nlocks = (sq)->sq_nciputctrl; \
880 for (i = 0; i <= nlocks; i++) { \
890 int nlocks = (sq)->sq_nciputctrl; \
893 for (i = 0; i <= nlocks; i++) { \
[all …]
/illumos-gate/usr/src/lib/libadm/common/
H A Ddevreserv.c548 int nlocks; /* Number of locks (up to date) */ in compresslks() local
553 nlocks = lockcount; in compresslks()
568 nlocks--; in compresslks()
588 return (nlocks); in compresslks()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dtypegraph.c2964 size_t nlocks, osize, size; in findlocks_findmutex() local
2967 if ((nlocks = (fl->fl_nlocks << 1)) == 0) in findlocks_findmutex()
2968 nlocks = 1; in findlocks_findmutex()
2971 size = nlocks * sizeof (foundlock_t); in findlocks_findmutex()
2981 fl->fl_nlocks = nlocks; in findlocks_findmutex()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_durable.c771 uint_t nlocks = alen / 3; in smb2_dh_import_handle() local
775 for (i = 0; i < nlocks; i++) { in smb2_dh_import_handle()
/illumos-gate/usr/src/uts/common/os/
H A Dstrsubr.c603 int nlocks = (sq)->sq_nciputctrl; \
606 for (i = 0; i <= nlocks; i++) { \
618 int nlocks = (sq)->sq_nciputctrl; \
621 for (i = 0; i <= nlocks; i++) { \