Lines Matching +defs:nl +defs:c
4 * Copyright (c) 1989, 1993, 1995
205 * - vnode reclamation (see vnlru in kern/vfs_subr.c) defaults to skipping
919 * Consider a path like: /usr/obj/usr/src/sys/amd64/GENERIC/vnode_if.c
952 cache_get_hash_iter(char c, uint32_t hash)
955 return (fnv_32_buf(&c, 1, hash));
1380 struct neglist *nl;
1384 nl = NCP2NEGLIST(ncp);
1385 mtx_assert(&nl->nl_lock, MA_OWNED);
1387 TAILQ_REMOVE(&nl->nl_list, ncp, nc_dst);
1388 TAILQ_INSERT_TAIL(&nl->nl_hotlist, ncp, nc_dst);
1389 nl->nl_hotnum++;
1400 struct neglist *nl;
1404 nl = NCP2NEGLIST(ncp);
1405 mtx_assert(&nl->nl_lock, MA_OWNED);
1407 TAILQ_REMOVE(&nl->nl_hotlist, ncp, nc_dst);
1408 TAILQ_INSERT_TAIL(&nl->nl_list, ncp, nc_dst);
1409 nl->nl_hotnum--;
1428 struct neglist *nl;
1431 nl = NCP2NEGLIST(oncp);
1433 mtx_lock(&nl->nl_lock);
1484 mtx_unlock(&nl->nl_lock);
1488 mtx_unlock(&nl->nl_lock);
1495 struct neglist *nl;
1497 nl = NCP2NEGLIST(ncp);
1498 mtx_lock(&nl->nl_lock);
1500 mtx_unlock(&nl->nl_lock);
1506 struct neglist *nl;
1510 nl = NCP2NEGLIST(ncp);
1511 mtx_lock(&nl->nl_lock);
1512 TAILQ_INSERT_TAIL(&nl->nl_list, ncp, nc_dst);
1513 mtx_unlock(&nl->nl_lock);
1520 struct neglist *nl;
1524 nl = NCP2NEGLIST(ncp);
1526 mtx_lock(&nl->nl_lock);
1528 TAILQ_REMOVE(&nl->nl_hotlist, ncp, nc_dst);
1529 nl->nl_hotnum--;
1531 TAILQ_REMOVE(&nl->nl_list, ncp, nc_dst);
1533 mtx_unlock(&nl->nl_lock);
1540 struct neglist *nl;
1541 u_int c;
1543 c = atomic_fetchadd_int(&neg_cycle, 1) + 1;
1544 nl = &neglists[c % numneglists];
1545 if (!mtx_trylock(&nl->nl_evict_lock)) {
1549 return (nl);
1553 cache_neg_evict_select_entry(struct neglist *nl)
1559 mtx_assert(&nl->nl_evict_lock, MA_OWNED);
1560 mtx_assert(&nl->nl_lock, MA_OWNED);
1561 ncp = TAILQ_FIRST(&nl->nl_list);
1583 struct neglist *nl;
1591 nl = cache_neg_evict_select_list();
1592 if (nl == NULL) {
1596 mtx_lock(&nl->nl_lock);
1597 ncp = TAILQ_FIRST(&nl->nl_hotlist);
1601 ncp = cache_neg_evict_select_entry(nl);
1604 mtx_unlock(&nl->nl_lock);
1605 mtx_unlock(&nl->nl_evict_lock);
1613 mtx_unlock(&nl->nl_lock);
1614 mtx_unlock(&nl->nl_evict_lock);
4149 db_printf("%c", *ncn++);