Home
last modified time | relevance | path

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

/freebsd/lib/libc/db/hash/
H A Dhash.c97 HTAB *hashp; in __hash_open() local
107 if (!(hashp = (HTAB *)calloc(1, sizeof(HTAB)))) in __hash_open()
109 hashp->fp = -1; in __hash_open()
117 hashp->flags = flags; in __hash_open()
120 if ((hashp->fp = _open(file, flags | O_CLOEXEC, mode)) == -1) in __hash_open()
122 new_table = _fstat(hashp->fp, &statbuf) == 0 && in __hash_open()
128 if (!(hashp = init_hash(hashp, file, info))) in __hash_open()
133 hashp->hash = info->hash; in __hash_open()
135 hashp->hash = __default_hash; in __hash_open()
137 hdrsize = _read(hashp->fp, &hashp->hdr, sizeof(HASHHDR)); in __hash_open()
[all …]
H A Dhash_page.c82 ((u_int16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(u_int16_t); \
83 ((u_int16_t *)(P))[2] = hashp->BSIZE; \
122 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) in __delpair() argument
131 return (__big_delete(hashp, bufp)); in __delpair()
135 newoff = hashp->BSIZE; in __delpair()
155 if (ndx == hashp->cndx) { in __delpair()
161 hashp->cndx -= 2; in __delpair()
168 hashp->NKEYS--; in __delpair()
179 __split_page(HTAB *hashp, u_int32_t obucket, u_int32_t nbucket) in __split_page() argument
189 copyto = (u_int16_t)hashp->BSIZE; in __split_page()
[all …]
H A Dhash_bigkey.c82 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) in __big_insert() argument
112 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
168 bufp = __add_ovflpage(hashp, bufp); in __big_insert()
192 __big_delete(HTAB *hashp, BUFHEAD *bufp) in __big_delete() argument
217 rbufp = __get_buf(hashp, pageno, rbufp, 0); in __big_delete()
219 __free_ovflpage(hashp, last_bfp); in __big_delete()
249 FREESPACE(bp) = hashp->BSIZE - PAGE_META(n); in __big_delete()
250 OFFSET(bp) = hashp->BSIZE; in __big_delete()
254 __free_ovflpage(hashp, rbufp); in __big_delete()
256 __free_ovflpage(hashp, last_bfp); in __big_delete()
[all …]
H A Dhash_buf.c83 #define MRU hashp->bufhead.next
84 #define LRU hashp->bufhead.prev
86 #define MRU_INSERT(B) BUF_INSERT((B), &hashp->bufhead)
99 __get_buf(HTAB *hashp, u_int32_t addr, in __get_buf() argument
118 segment_ndx = addr & (hashp->SGSIZE - 1); in __get_buf()
121 segp = hashp->dir[addr >> hashp->SSHIFT]; in __get_buf()
127 is_disk = is_disk_mask || !hashp->new_file; in __get_buf()
131 bp = newbuf(hashp, addr, prev_bp); in __get_buf()
133 __get_page(hashp, bp->page, addr, !prev_bp, is_disk, 0)) in __get_buf()
152 newbuf(HTAB *hashp, u_int32_t addr, BUFHEAD *prev_bp) in newbuf() argument
[all …]
H A Dhash.h169 (B) + hashp->HDRPAGES + ((B) ? hashp->SPARES[__log2((B)+1)-1] : 0)
/freebsd/sys/fs/nfsserver/
H A Dnfs_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 …]
H A Dnfs_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()
H A Dnfs_nfsdport.c4318 u_long *hashp; in nfsrv_dscreate() local
4325 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrv_dscreate()
4701 u_long *hashp; in nfsrv_dsremove() local
4711 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrv_dsremove()
6475 u_long *hashp; in nfsrv_pnfslookupds() local
6484 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrv_pnfslookupds()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddsl_bookmark.c44 char *hashp; in dsl_bookmark_hold_ds() local
48 hashp = strchr(fullname, '#'); in dsl_bookmark_hold_ds()
49 if (hashp == NULL) in dsl_bookmark_hold_ds()
52 *shortnamep = hashp + 1; in dsl_bookmark_hold_ds()
55 (void) strlcpy(buf, fullname, hashp - fullname + 1); in dsl_bookmark_hold_ds()
H A Dzfs_ioctl.c965 char *hashp = strchr(name, '#'); in zfs_secpolicy_bookmark() local
967 if (hashp == NULL) { in zfs_secpolicy_bookmark()
971 *hashp = '\0'; in zfs_secpolicy_bookmark()
974 *hashp = '#'; in zfs_secpolicy_bookmark()
991 char *hashp = strchr(name, '#'); in zfs_secpolicy_destroy_bookmarks() local
994 if (hashp == NULL) { in zfs_secpolicy_destroy_bookmarks()
999 *hashp = '\0'; in zfs_secpolicy_destroy_bookmarks()
1002 *hashp = '#'; in zfs_secpolicy_destroy_bookmarks()