Lines Matching defs:fg
1236 struct fileglob *fg;
1247 fg = *rp;
1248 unp_discard_fdlocked(fg, p);
1269 fg = *rp;
1271 unp_discard_fdlocked(fg, p);
1277 fg = *rp;
1284 fp->f_fglob = fg;
1285 fg_removeuipc(fg);
1388 struct fileglob *fg, *nextfg;
1408 for (fg = fmsghead.lh_first; fg != 0; fg = fg->f_msglist.le_next) {
1409 lck_mtx_lock(&fg->fg_lock);
1410 fg->fg_flag &= ~(FMARK|FDEFER);
1411 lck_mtx_unlock(&fg->fg_lock);
1414 for (fg = fmsghead.lh_first; fg != 0;
1415 fg = fg->f_msglist.le_next) {
1416 lck_mtx_lock(&fg->fg_lock);
1420 if (fg->fg_count == 0) {
1421 lck_mtx_unlock(&fg->fg_lock);
1429 if (fg->fg_flag & FDEFER) {
1430 fg->fg_flag &= ~FDEFER;
1437 if (fg->fg_flag & FMARK) {
1438 lck_mtx_unlock(&fg->fg_lock);
1446 if (fg->fg_count == fg->fg_msgcount) {
1447 lck_mtx_unlock(&fg->fg_lock);
1454 fg->fg_flag |= FMARK;
1461 if (fg->fg_type != DTYPE_SOCKET ||
1462 (so = (struct socket *)fg->fg_data) == 0) {
1463 lck_mtx_unlock(&fg->fg_lock);
1468 lck_mtx_unlock(&fg->fg_lock);
1501 lck_mtx_unlock(&fg->fg_lock);
1547 for (nunref = 0, fg = fmsghead.lh_first, fpp = extra_ref; fg != 0;
1548 fg = nextfg) {
1549 lck_mtx_lock(&fg->fg_lock);
1551 nextfg = fg->f_msglist.le_next;
1555 if (fg->fg_count == 0) {
1556 lck_mtx_unlock(&fg->fg_lock);
1565 if (fg->fg_count == fg->fg_msgcount && !(fg->fg_flag & FMARK)) {
1566 fg->fg_count++;
1567 *fpp++ = fg;
1570 lck_mtx_unlock(&fg->fg_lock);
1660 unp_mark(struct fileglob *fg)
1662 lck_mtx_lock(&fg->fg_lock);
1664 if (fg->fg_flag & FMARK) {
1665 lck_mtx_unlock(&fg->fg_lock);
1668 fg->fg_flag |= (FMARK|FDEFER);
1670 lck_mtx_unlock(&fg->fg_lock);
1677 unp_discard(struct fileglob *fg)
1684 unp_discard_fdlocked(fg, p);
1688 unp_discard_fdlocked(struct fileglob *fg, proc_t p)
1690 fg_removeuipc(fg);
1693 (void) closef_locked((struct fileproc *)0, fg, p);