Lines Matching refs:cn_nameptr
472 bcmp(ncp->nc_name, cnp->cn_nameptr, cnp->cn_namelen) == 0); in cache_ncp_match()
1852 cnp->cn_nameptr[0] == '.' && cnp->cn_nameptr[1] == '.') { in cache_remove_cnp()
1892 hash = cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp); in cache_remove_cnp()
2091 hash = cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp); in cache_lookup_fallback()
2098 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup_fallback()
2168 if (__predict_false(cnp->cn_nameptr[0] == '.')) { in cache_lookup()
2171 if (cnp->cn_namelen == 2 && cnp->cn_nameptr[1] == '.') in cache_lookup()
2182 hash = cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp); in cache_lookup()
2188 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup()
2478 hash = cache_get_hash(cnp->cn_nameptr, len, dvp); in cache_enter_dotdot_prep()
2516 if (cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.') { in cache_enter_time()
2523 cnp->cn_nameptr, dvp)); in cache_enter_time()
2532 if (__predict_false(cnp->cn_nameptr[0] == '.')) { in cache_enter_time()
2535 if (cnp->cn_namelen == 2 && cnp->cn_nameptr[1] == '.') { in cache_enter_time()
2569 hash = cache_get_hash(cnp->cn_nameptr, len, dvp); in cache_enter_time()
2570 memcpy(ncp->nc_name, cnp->cn_nameptr, len); in cache_enter_time()
2586 __func__, NULL, vp, cnp->cn_nameptr)); in cache_enter_time()
2591 __func__, n2->nc_vp, vp, cnp->cn_nameptr)); in cache_enter_time()
3109 hash = cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp); in cache_validate()
3294 nd.ni_cnd.cn_nameptr, nd.ni_cnd.cn_namelen, &retbuf, in kern___realpathat()
4242 char *cn_nameptr; member
4291 cnp->cn_nameptr = NULL; in cache_fpl_cleanup_cnp()
4303 MPASS(*(cnp->cn_nameptr) == '/'); in cache_fpl_handle_root()
4304 cnp->cn_nameptr++; in cache_fpl_handle_root()
4307 if (__predict_false(*(cnp->cn_nameptr) == '/')) { in cache_fpl_handle_root()
4309 cnp->cn_nameptr++; in cache_fpl_handle_root()
4311 } while (*(cnp->cn_nameptr) == '/'); in cache_fpl_handle_root()
4330 fpl->snd.cn_nameptr = fpl->ndp->ni_cnd.cn_nameptr; in cache_fpl_checkpoint()
4354 fpl->ndp->ni_cnd.cn_nameptr = fpl->ndp->ni_cnd.cn_pnbuf; in cache_fpl_restore_abort()
4547 cnp->cn_nameptr[1] == '.' && cnp->cn_nameptr[0] == '.') in cache_fpl_isdotdot()
4683 if (cnp->cn_nameptr != fpl->snd.cn_nameptr) { in cache_fplookup_partial_setup()
4685 cnp->cn_nameptr, fpl->snd.cn_nameptr, cnp->cn_pnbuf); in cache_fplookup_partial_setup()
4700 if (__predict_false(*(cnp->cn_nameptr) == '/')) { in cache_fplookup_partial_setup()
4702 cnp->cn_nameptr++; in cache_fplookup_partial_setup()
4704 } while (*(cnp->cn_nameptr) == '/'); in cache_fplookup_partial_setup()
4707 ndp->ni_pathlen = fpl->nulchar - cnp->cn_nameptr + 1; in cache_fplookup_partial_setup()
4712 cnp->cn_nameptr, cnp->cn_nameptr, cnp->cn_pnbuf); in cache_fplookup_partial_setup()
4773 MPASS(*(cnp->cn_nameptr) != '/'); in cache_fplookup_final_modifying()
5025 MPASS(*(cnp->cn_nameptr) != '/'); in cache_fplookup_final()
5184 if (cnp->cn_nameptr[0] == '/') { in cache_fplookup_noentry()
5192 if (cnp->cn_nameptr[0] == '\0') { in cache_fplookup_noentry()
5461 ndp->ni_pathlen = fpl->nulchar - cnp->cn_nameptr - cnp->cn_namelen + 1; in cache_symlink_resolve()
5466 cnp->cn_nameptr, cnp->cn_nameptr, cnp->cn_pnbuf); in cache_symlink_resolve()
5494 cnp->cn_nameptr = cnp->cn_pnbuf; in cache_symlink_resolve()
5495 fpl->nulchar = &cnp->cn_nameptr[ndp->ni_pathlen - 1]; in cache_symlink_resolve()
5551 if (*(cnp->cn_nameptr) == '/') { in cache_fplookup_symlink()
5591 if (__predict_false(cnp->cn_nameptr[0] == '.')) { in cache_fplookup_next()
5595 if (cnp->cn_namelen == 2 && cnp->cn_nameptr[1] == '.') { in cache_fplookup_next()
5871 MPASS(&cnp->cn_nameptr[fpl->debug.ni_pathlen - 1] >= cnp->cn_pnbuf); in cache_fplookup_parse()
5872 KASSERT(&cnp->cn_nameptr[fpl->debug.ni_pathlen - 1] == fpl->nulchar, in cache_fplookup_parse()
5874 __func__, fpl->debug.ni_pathlen, &cnp->cn_nameptr[fpl->debug.ni_pathlen - 1], in cache_fplookup_parse()
5881 for (cp = cnp->cn_nameptr; *cp != '/'; cp++) { in cache_fplookup_parse()
5884 cnp->cn_nameptr)); in cache_fplookup_parse()
5891 cnp->cn_namelen = cp - cnp->cn_nameptr; in cache_fplookup_parse()
5900 if (fpl->hash != cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp)) { in cache_fplookup_parse()
5902 cnp->cn_nameptr, cnp->cn_namelen); in cache_fplookup_parse()
5925 cnp->cn_nameptr = ndp->ni_next; in cache_fplookup_parse_advance()
5926 KASSERT(*(cnp->cn_nameptr) == '/', in cache_fplookup_parse_advance()
5928 cnp->cn_nameptr, cnp->cn_pnbuf, cnp->cn_pnbuf)); in cache_fplookup_parse_advance()
5929 cnp->cn_nameptr++; in cache_fplookup_parse_advance()
5951 MPASS(*(cnp->cn_nameptr) == '/'); in cache_fplookup_skip_slashes()
5953 cnp->cn_nameptr++; in cache_fplookup_skip_slashes()
5955 } while (*(cnp->cn_nameptr) == '/'); in cache_fplookup_skip_slashes()
5961 cnp->cn_nameptr--; in cache_fplookup_skip_slashes()
5967 ndp->ni_next = cnp->cn_nameptr; in cache_fplookup_skip_slashes()
6018 KASSERT(cnp->cn_nameptr[0] == '\0', in cache_fplookup_trailingslash()
6019 ("%s: expected nul char at %p; string [%s]\n", __func__, &cnp->cn_nameptr[0], in cache_fplookup_trailingslash()
6024 MPASS(cnp->cn_nameptr > cnp->cn_pnbuf); in cache_fplookup_trailingslash()
6041 ndp->ni_next = &cnp->cn_nameptr[0]; in cache_fplookup_trailingslash()
6047 cn_nameptr_orig = cnp->cn_nameptr; in cache_fplookup_trailingslash()
6048 while (cnp->cn_nameptr >= cnp->cn_pnbuf) { in cache_fplookup_trailingslash()
6049 cnp->cn_nameptr--; in cache_fplookup_trailingslash()
6050 if (cnp->cn_nameptr[0] != '/') { in cache_fplookup_trailingslash()
6060 cn_nameptr_slash = cnp->cn_nameptr; in cache_fplookup_trailingslash()
6061 while (cnp->cn_nameptr > cnp->cn_pnbuf) { in cache_fplookup_trailingslash()
6062 cnp->cn_nameptr--; in cache_fplookup_trailingslash()
6063 if (cnp->cn_nameptr[0] == '/') { in cache_fplookup_trailingslash()
6067 if (cnp->cn_nameptr[0] == '/') { in cache_fplookup_trailingslash()
6068 cnp->cn_nameptr++; in cache_fplookup_trailingslash()
6071 cnp->cn_namelen = cn_nameptr_slash - cnp->cn_nameptr + 1; in cache_fplookup_trailingslash()
6072 cache_fpl_pathlen_add(fpl, cn_nameptr_orig - cnp->cn_nameptr); in cache_fplookup_trailingslash()
6076 ni_pathlen = fpl->nulchar - cnp->cn_nameptr + 1; in cache_fplookup_trailingslash()
6080 cnp->cn_nameptr, cnp->cn_nameptr, cnp->cn_pnbuf); in cache_fplookup_trailingslash()
6087 if (cnp->cn_nameptr[0] == '.' && cnp->cn_namelen == 1) { in cache_fplookup_trailingslash()
6146 if (cnp->cn_nameptr[0] == '\0' && fpl->tvp == NULL) { in cache_fplookup_failed_vexec()
6380 MPASS(cnp->cn_nameptr == cnp->cn_pnbuf); in cache_fplookup()
6395 fpl.nulchar = &cnp->cn_nameptr[ndp->ni_pathlen - 1]; in cache_fplookup()