Home
last modified time | relevance | path

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

/freebsd-head/lib/libc/db/hash/
HDhash.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 …]
HDhash_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 …]
HDhash_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 …]
HDhash_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 …]
HDhash.h169 (B) + hashp->HDRPAGES + ((B) ? hashp->SPARES[__log2((B)+1)-1] : 0)
/freebsd-head/sys/fs/nfsserver/
HDnfs_nfsdserv.c596 u_long *hashp; in nfsrvd_lookup() local
622 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrvd_lookup()
623 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); in nfsrvd_lookup()
1169 u_long *hashp; in nfsrvd_create() local
1180 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrvd_create()
1181 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); in nfsrvd_create()
1339 u_long *hashp, cnflags; in nfsrvd_mknod() local
1403 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrvd_mknod()
1404 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); in nfsrvd_mknod()
1565 u_long *hashp; in nfsrvd_remove() local
[all …]
HDnfs_nfsdsubs.c1889 nfsrv_parsename(struct nfsrv_descript *nd, char *bufp, u_long *hashp, in nfsrv_parsename() argument
1900 if (hashp != NULL) in nfsrv_parsename()
1901 *hashp = 0; in nfsrv_parsename()
2083 if (hashp != NULL) in nfsrv_parsename()
2084 *hashp = hash; in nfsrv_parsename()
HDnfs_nfsdport.c4353 u_long *hashp; in nfsrv_dscreate() local
4360 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrv_dscreate()
4736 u_long *hashp; in nfsrv_dsremove() local
4746 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrv_dsremove()
6511 u_long *hashp; in nfsrv_pnfslookupds() local
6520 nfsvno_setpathbuf(&named, &bufp, &hashp); in nfsrv_pnfslookupds()
/freebsd-head/sys/contrib/openzfs/module/zfs/
HDdsl_bookmark.c45 char *hashp; in dsl_bookmark_hold_ds() local
49 hashp = strchr(fullname, '#'); in dsl_bookmark_hold_ds()
50 if (hashp == NULL) in dsl_bookmark_hold_ds()
53 *shortnamep = hashp + 1; in dsl_bookmark_hold_ds()
56 (void) strlcpy(buf, fullname, hashp - fullname + 1); in dsl_bookmark_hold_ds()
HDzfs_ioctl.c975 char *hashp = strchr(name, '#'); in zfs_secpolicy_bookmark() local
977 if (hashp == NULL) { in zfs_secpolicy_bookmark()
981 *hashp = '\0'; in zfs_secpolicy_bookmark()
984 *hashp = '#'; in zfs_secpolicy_bookmark()
1001 char *hashp = strchr(name, '#'); in zfs_secpolicy_destroy_bookmarks() local
1004 if (hashp == NULL) { in zfs_secpolicy_destroy_bookmarks()
1009 *hashp = '\0'; in zfs_secpolicy_destroy_bookmarks()
1012 *hashp = '#'; in zfs_secpolicy_destroy_bookmarks()