Lines Matching refs:ufp
134 * ufp = fip->fi_list[fd];
135 * mutex_enter(&ufp->uf_lock);
138 * fi_list can change in the window between loading ufp and entering uf_lock.
139 * The UF_ENTER() macro deals with this possibility. UF_ENTER(ufp, fip, fd)
140 * locks fd and sets ufp to fd's uf_entry. The locking rules are as follows:
143 * uf_alloc and uf_busy fields of every fd's ufp; see fd_find() for
146 * (2) UF_ENTER(ufp, fip, fd) locks descriptor fd and sets ufp to point
147 * to the uf_entry_t for fd. UF_ENTER() protects all fields in ufp
148 * except uf_alloc and uf_busy. UF_ENTER(ufp, fip, fd) also prevents
149 * ufp->uf_alloc, ufp->uf_busy, fip->fi_list and fip->fi_nfiles from
158 #define UF_ENTER(ufp, fip, fd) \
161 ufp = &_flist[fd]; \
163 mutex_enter(&ufp->uf_lock); \
166 mutex_exit(&ufp->uf_lock); \
169 #define UF_EXIT(ufp) mutex_exit(&ufp->uf_lock)