Lines Matching refs:nc
187 smb_notify_t *nc; in smb_notify_act1() local
195 nc = &of->f_notify; in smb_notify_act1()
221 if (nc->nc_subscribed == B_FALSE) { in smb_notify_act1()
222 nc->nc_subscribed = B_TRUE; in smb_notify_act1()
226 nc->nc_events |= FILE_NOTIFY_CHANGE_EV_DELETE; in smb_notify_act1()
232 nc->nc_buffer.max_bytes = buflen; in smb_notify_act1()
233 nc->nc_filter = filter; in smb_notify_act1()
239 if (nc->nc_events != 0) { in smb_notify_act1()
273 smb_notify_t *nc; in smb_notify_act2() local
281 nc = &of->f_notify; in smb_notify_act2()
322 list_insert_tail(&nc->nc_waiters, sr); in smb_notify_act2()
323 if (nc->nc_events != 0) { in smb_notify_act2()
349 smb_notify_t *nc; in smb_notify_act3() local
354 nc = &of->f_notify; in smb_notify_act3()
390 list_remove(&nc->nc_waiters, sr); in smb_notify_act3()
409 smb_notify_t *nc; in smb_notify_get_events() local
416 nc = &of->f_notify; in smb_notify_get_events()
420 uint32_t, nc->nc_events); in smb_notify_get_events()
425 if (nc->nc_events & FILE_NOTIFY_CHANGE_EV_CLOSED) { in smb_notify_get_events()
429 if (nc->nc_events & FILE_NOTIFY_CHANGE_EV_DELETE) { in smb_notify_get_events()
433 if (nc->nc_events & FILE_NOTIFY_CHANGE_EV_SUBDIR) { in smb_notify_get_events()
437 if (nc->nc_events & FILE_NOTIFY_CHANGE_EV_OVERFLOW) { in smb_notify_get_events()
448 if ((nc->nc_events & FILE_NOTIFY_VALID_MASK) == 0) { in smb_notify_get_events()
460 if (nc->nc_buffer.max_bytes <= 0) { in smb_notify_get_events()
470 if ((len = nc->nc_buffer.chain_offset) <= 0) { in smb_notify_get_events()
491 (void) smb_mbc_copy(&sr->raw_data, &nc->nc_buffer, 0, len); in smb_notify_get_events()
492 (void) smb_mbc_poke(&sr->raw_data, nc->nc_last_off, "l", 0); in smb_notify_get_events()
507 if (list_is_empty(&nc->nc_waiters)) { in smb_notify_get_events()
508 nc->nc_buffer.chain_offset = 0; in smb_notify_get_events()
509 nc->nc_events &= (FILE_NOTIFY_CHANGE_EV_CLOSED | in smb_notify_get_events()
646 smb_notify_t *nc; in smb_notify_ofile() local
653 nc = &of->f_notify; in smb_notify_ofile()
660 filter = nc->nc_filter | in smb_notify_ofile()
688 nc->nc_events |= events; in smb_notify_ofile()
699 nc->nc_events |= events; in smb_notify_ofile()
707 sr = list_head(&nc->nc_waiters); in smb_notify_ofile()
710 sr = list_next(&nc->nc_waiters, sr); in smb_notify_ofile()
724 smb_notify_t *nc = &of->f_notify; in smb_notify_encode_action() local
728 ASSERT(nc != NULL); in smb_notify_encode_action()
735 if ((nc->nc_events & FILE_NOTIFY_CHANGE_EV_OVERFLOW) != 0) in smb_notify_encode_action()
747 mbc = &nc->nc_buffer; in smb_notify_encode_action()
750 nc->nc_events |= FILE_NOTIFY_CHANGE_EV_OVERFLOW; in smb_notify_encode_action()
759 nc->nc_last_off = mbc->chain_offset; in smb_notify_encode_action()
779 mbc->chain_offset = nc->nc_last_off + totlen; in smb_notify_encode_action()