Home
last modified time | relevance | path

Searched refs:hashp (Results 1 – 10 of 10) sorted by relevance

/freebsd-14-stable/lib/libc/db/hash/
HDhash.c100 HTAB *hashp; in __hash_open() local
110 if (!(hashp = (HTAB *)calloc(1, sizeof(HTAB)))) in __hash_open()
112 hashp->fp = -1; in __hash_open()
120 hashp->flags = flags; in __hash_open()
123 if ((hashp->fp = _open(file, flags | O_CLOEXEC, mode)) == -1) in __hash_open()
125 new_table = _fstat(hashp->fp, &statbuf) == 0 && in __hash_open()
131 if (!(hashp = init_hash(hashp, file, info))) in __hash_open()
136 hashp->hash = info->hash; in __hash_open()
138 hashp->hash = __default_hash; in __hash_open()
140 hdrsize = _read(hashp->fp, &hashp->hdr, sizeof(HASHHDR)); in __hash_open()
[all …]
HDhash_page.c85 ((u_int16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(u_int16_t); \
86 ((u_int16_t *)(P))[2] = hashp->BSIZE; \
125 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) in __delpair() argument
134 return (__big_delete(hashp, bufp)); in __delpair()
138 newoff = hashp->BSIZE; in __delpair()
158 if (ndx == hashp->cndx) { in __delpair()
164 hashp->cndx -= 2; in __delpair()
171 hashp->NKEYS--; in __delpair()
182 __split_page(HTAB *hashp, u_int32_t obucket, u_int32_t nbucket) in __split_page() argument
192 copyto = (u_int16_t)hashp->BSIZE; in __split_page()
[all …]
HDhash_bigkey.c85 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) in __big_insert() argument
115 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
171 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
195 __big_delete(HTAB *hashp, BUFHEAD *bufp) in __big_delete() argument
220 rbufp = __get_buf(hashp, pageno, rbufp, 0); in __big_delete()
222 __free_ovflpage(hashp, last_bfp); in __big_delete()
252 FREESPACE(bp) = hashp->BSIZE - PAGE_META(n); in __big_delete()
253 OFFSET(bp) = hashp->BSIZE; in __big_delete()
257 __free_ovflpage(hashp, rbufp); in __big_delete()
259 __free_ovflpage(hashp, last_bfp); in __big_delete()
[all …]
HDhash_buf.c86 #define MRU hashp->bufhead.next
87 #define LRU hashp->bufhead.prev
89 #define MRU_INSERT(B) BUF_INSERT((B), &hashp->bufhead)
102 __get_buf(HTAB *hashp, u_int32_t addr, in __get_buf() argument
121 segment_ndx = addr & (hashp->SGSIZE - 1); in __get_buf()
124 segp = hashp->dir[addr >> hashp->SSHIFT]; in __get_buf()
130 is_disk = is_disk_mask || !hashp->new_file; in __get_buf()
134 bp = newbuf(hashp, addr, prev_bp); in __get_buf()
136 __get_page(hashp, bp->page, addr, !prev_bp, is_disk, 0)) in __get_buf()
155 newbuf(HTAB *hashp, u_int32_t addr, BUFHEAD *prev_bp) in newbuf() argument
[all …]
HDhash.h171 (B) + hashp->HDRPAGES + ((B) ? hashp->SPARES[__log2((B)+1)-1] : 0)
/freebsd-14-stable/sys/fs/nfsserver/
HDnfs_nfsdserv.c596 u_long *hashp; in nfsrvd_lookup() local
616 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrvd_lookup()
617 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); in nfsrvd_lookup()
1159 u_long *hashp; in nfsrvd_create() local
1170 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrvd_create()
1171 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); in nfsrvd_create()
1329 u_long *hashp, cnflags; in nfsrvd_mknod() local
1381 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrvd_mknod()
1382 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); in nfsrvd_mknod()
1543 u_long *hashp; in nfsrvd_remove() local
[all …]
HDnfs_nfsdsubs.c1880 nfsrv_parsename(struct nfsrv_descript *nd, char *bufp, u_long *hashp, in nfsrv_parsename() argument
1891 if (hashp != NULL) in nfsrv_parsename()
1892 *hashp = 0; in nfsrv_parsename()
2074 if (hashp != NULL) in nfsrv_parsename()
2075 *hashp = hash; in nfsrv_parsename()
HDnfs_nfsdport.c4317 u_long *hashp; in nfsrv_dscreate() local
4324 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrv_dscreate()
4700 u_long *hashp; in nfsrv_dsremove() local
4710 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrv_dsremove()
6474 u_long *hashp; in nfsrv_pnfslookupds() local
6483 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrv_pnfslookupds()
/freebsd-14-stable/sys/contrib/openzfs/module/zfs/
HDdsl_bookmark.c43 char *hashp; in dsl_bookmark_hold_ds() local
47 hashp = strchr(fullname, '#'); in dsl_bookmark_hold_ds()
48 if (hashp == NULL) in dsl_bookmark_hold_ds()
51 *shortnamep = hashp + 1; in dsl_bookmark_hold_ds()
54 (void) strlcpy(buf, fullname, hashp - fullname + 1); in dsl_bookmark_hold_ds()
HDzfs_ioctl.c966 char *hashp = strchr(name, '#'); in zfs_secpolicy_bookmark() local
968 if (hashp == NULL) { in zfs_secpolicy_bookmark()
972 *hashp = '\0'; in zfs_secpolicy_bookmark()
975 *hashp = '#'; in zfs_secpolicy_bookmark()
992 char *hashp = strchr(name, '#'); in zfs_secpolicy_destroy_bookmarks() local
995 if (hashp == NULL) { in zfs_secpolicy_destroy_bookmarks()
1000 *hashp = '\0'; in zfs_secpolicy_destroy_bookmarks()
1003 *hashp = '#'; in zfs_secpolicy_destroy_bookmarks()