Searched refs:zap (Results 1 - 25 of 55) sorted by relevance

123

/illumos-gate/usr/src/uts/sun/sys/
H A Dser_async.h83 #define RING_INIT(zap) ((zap)->za_rput = (zap)->za_rget = 0)
84 #define RING_CNT(zap) (((zap)->za_rput - (zap)->za_rget) & RINGMASK)
85 #define RING_FRAC(zap) ((int)RING_CNT(zap) >= (int)(RINGSIZE/RINGFRAC))
86 #define RING_POK(zap, n) ((int)RING_CNT(zap) < (in
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzap_micro.c32 #include <sys/zap.h>
44 extern inline mzap_phys_t *zap_m_phys(zap_t *zap);
50 zap_getflags(zap_t *zap) argument
52 if (zap->zap_ismicro)
54 return (zap_f_phys(zap)->zap_flags);
58 zap_hashbits(zap_t *zap) argument
60 if (zap_getflags(zap) & ZAP_FLAG_HASH64)
67 zap_maxcd(zap_t *zap) argument
69 if (zap_getflags(zap) & ZAP_FLAG_HASH64)
78 zap_t *zap local
136 zap_normalize(zap_t *zap, const char *name, char *namenorm) argument
179 zap_name_alloc(zap_t *zap, const char *key, matchtype_t mt) argument
209 zap_name_alloc_uint64(zap_t *zap, const uint64_t *key, int numints) argument
273 mze_insert(zap_t *zap, int chunkid, uint64_t hash) argument
319 mze_find_unused_cd(zap_t *zap, uint64_t hash) argument
345 mze_remove(zap_t *zap, mzap_ent_t *mze) argument
355 mze_destroy(zap_t *zap) argument
369 zap_t *zap; local
465 zap_t *zap; local
577 zap_unlockdir(zap_t *zap, void *tag) argument
589 zap_t *zap = *zapp; local
659 zap_t *zap; local
741 zap_t *zap = dbu; local
756 zap_t *zap; local
776 mzap_normalization_conflict(zap_t *zap, zap_name_t *zn, mzap_ent_t *mze) argument
825 zap_lookup_impl(zap_t *zap, const char *name, uint64_t integer_size, uint64_t num_integers, void *buf, matchtype_t mt, char *realname, int rn_len, boolean_t *ncp) argument
872 zap_t *zap; local
898 zap_t *zap; local
915 zap_t *zap; local
938 zap_t *zap; local
972 zap_t *zap; local
1007 zap_t *zap; local
1029 zap_t *zap = zn->zn_zap; local
1074 zap_t *zap; local
1119 zap_t *zap; local
1143 zap_t *zap; local
1202 zap_t *zap; local
1232 zap_t *zap; local
1267 zap_t *zap; local
1422 zap_t *zap; local
1445 zap_t *zap; local
[all...]
H A Dzap.c47 #include <sys/zap.h>
54 extern inline zap_phys_t *zap_f_phys(zap_t *zap);
56 static uint64_t zap_allocate_blocks(zap_t *zap, int nblocks);
74 fzap_upgrade(zap_t *zap, dmu_tx_t *tx, zap_flags_t flags) argument
81 ASSERT(RW_WRITE_HELD(&zap->zap_rwlock));
82 zap->zap_ismicro = FALSE;
84 zap->zap_dbu.dbu_evict_func_sync = zap_evict_sync;
85 zap->zap_dbu.dbu_evict_func_async = NULL;
87 mutex_init(&zap->zap_f.zap_num_entries_mtx, 0, 0, 0);
88 zap
129 zap_tryupgradedir(zap_t *zap, dmu_tx_t *tx) argument
145 zap_table_grow(zap_t *zap, zap_table_phys_t *tbl, void (*transfer_func)(const uint64_t *src, uint64_t *dst, int n), dmu_tx_t *tx) argument
221 zap_table_store(zap_t *zap, zap_table_phys_t *tbl, uint64_t idx, uint64_t val, dmu_tx_t *tx) argument
269 zap_table_load(zap_t *zap, zap_table_phys_t *tbl, uint64_t idx, uint64_t *valp) argument
331 zap_grow_ptrtbl(zap_t *zap, dmu_tx_t *tx) argument
383 zap_increment_num_entries(zap_t *zap, int delta, dmu_tx_t *tx) argument
393 zap_allocate_blocks(zap_t *zap, int nblocks) argument
412 zap_create_leaf(zap_t *zap, dmu_tx_t *tx) argument
440 fzap_count(zap_t *zap, uint64_t *count) argument
509 zap_get_leaf_byblk(zap_t *zap, uint64_t blkid, dmu_tx_t *tx, krw_t lt, zap_leaf_t **lp) argument
553 zap_idx_to_blk(zap_t *zap, uint64_t idx, uint64_t *valp) argument
569 zap_set_idx_to_blk(zap_t *zap, uint64_t idx, uint64_t blk, dmu_tx_t *tx) argument
584 zap_deref_leaf(zap_t *zap, uint64_t h, dmu_tx_t *tx, krw_t lt, zap_leaf_t **lp) argument
615 zap_t *zap = zn->zn_zap; local
703 zap_t *zap = zn->zn_zap; local
818 zap_t *zap = zn->zn_zap; local
875 zap_t *zap = zn->zn_zap; local
958 zap_t *zap = zn->zn_zap; local
1184 fzap_cursor_retrieve(zap_t *zap, zap_cursor_t *zc, zap_attribute_t *za) argument
1254 zap_stats_ptrtbl(zap_t *zap, uint64_t *tbl, int len, zap_stats_t *zs) argument
1280 fzap_get_stats(zap_t *zap, zap_stats_t *zs) argument
1339 zap_t *zap = zn->zn_zap; local
[all...]
H A Dzap_leaf.c37 #include <sys/zap.h>
420 * normalized zap objects, so this will find the
517 zap_entry_read_name(zap_t *zap, const zap_entry_handle_t *zeh, uint16_t buflen, argument
524 if (zap_getflags(zap) & ZAP_FLAG_UINT64_KEY) {
682 const char *name, zap_t *zap)
688 if (zap->zap_normflags == 0)
700 zn = zap_name_alloc(zap, name, MT_FIRST);
842 zap_leaf_stats(zap_t *zap, zap_leaf_t *l, zap_stats_t *zs) argument
846 n = zap_f_phys(zap)->zap_ptrtbl.zt_shift -
856 n = ((1<<FZAP_BLOCK_SHIFT(zap))
681 zap_entry_normalization_conflict(zap_entry_handle_t *zeh, zap_name_t *zn, const char *name, zap_t *zap) argument
[all...]
H A Dzfs_dir.c50 #include <sys/zap.h>
61 * zfs_match_find() is used by zfs_dirent_lock() to peform zap lookups
103 * in dzp's directory zap object. As long as you hold a dirlock, you can
105 * can change the zap entry for (i.e. link or unlink) this name.
165 * perform zap lookups, and the "width" of our dirlocks.
179 * a zap lookup on file systems supporting case-insensitive
287 * not the dzp's z_lock, that protects the name in the zap object.)
444 * chance that the nlink list is using a fat zap (ie. has more than
470 zap_attribute_t zap; local
479 zap_cursor_retrieve(&zc, &zap)
529 zap_attribute_t zap; local
[all...]
H A Dddt_zap.c30 #include <sys/zap.h>
148 "zap",
H A Ddmu_diff.c39 #include <sys/zap.h>
H A Ddmu_object.c31 #include <sys/zap.h>
H A Dzfs_vnops.c68 #include <sys/zap.h>
2179 * Note that the low 4 bits of the cookie returned by zap is always zero.
2198 zap_attribute_t zap; local
2299 (void) strcpy(zap.za_name, ".");
2300 zap.za_normalization_conflict = 0;
2303 (void) strcpy(zap.za_name, "..");
2304 zap.za_normalization_conflict = 0;
2307 (void) strcpy(zap.za_name, ZFS_CTLDIR_NAME);
2308 zap.za_normalization_conflict = 0;
2314 if (error = zap_cursor_retrieve(&zc, &zap)) {
[all...]
H A Dspa_errlog.c54 #include <sys/zap.h>
H A Dzfeature.c30 #include <sys/zap.h>
H A Ddsl_bookmark.c27 #include <sys/zap.h>
416 * free the zap object and decrement the feature's use count.
H A Dspa_history.c30 #include <sys/zap.h>
H A Dzfs_fuid.c28 #include <sys/zap.h>
H A Dbpobj.c32 #include <sys/zap.h>
/illumos-gate/usr/src/grub/grub-0.97/stage2/zfs-include/
H A Dzap_impl.h50 * The (fat) zap is stored in one object. It is an array of
70 #define ZAP_EMBEDDED_PTRTBL_SHIFT(zap) (FZAP_BLOCK_SHIFT(zap) - 3 - 1)
75 * word number (1<<ZAP_EMBEDDED_PTRTBL_SHIFT(zap)).
77 #define ZAP_EMBEDDED_PTRTBL_ENT(zap, idx) \
78 ((uint64_t *)(zap)->zap_f.zap_phys) \
79 [(idx) + (1<<ZAP_EMBEDDED_PTRTBL_SHIFT(zap))]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dzap_impl.h31 #include <sys/zap.h>
43 #define FZAP_BLOCK_SHIFT(zap) ((zap)->zap_f.zap_block_shift)
74 #define MZE_PHYS(zap, mze) \
75 (&zap_m_phys(zap)->mz_chunk[(mze)->mze_chunkid])
78 * The (fat) zap is stored in one object. It is an array of
101 #define ZAP_EMBEDDED_PTRTBL_SHIFT(zap) (FZAP_BLOCK_SHIFT(zap) - 3 - 1)
106 * word number (1<<ZAP_EMBEDDED_PTRTBL_SHIFT(zap)).
108 #define ZAP_EMBEDDED_PTRTBL_ENT(zap, id
144 typedef struct zap { struct
172 zap_f_phys(zap_t *zap) argument
178 zap_m_phys(zap_t *zap) argument
[all...]
H A Dzap_leaf.h29 #include <sys/zap.h>
35 struct zap;
122 * ZAP_LEAF_HASH_NUMENTRIES(zap) entries. The hash table is
123 * followed by an array of ZAP_LEAF_NUMCHUNKS(zap)
205 extern int zap_entry_read_name(struct zap *zap, const zap_entry_handle_t *zeh,
232 struct zap_name *zn, const char *name, struct zap *zap);
241 extern void zap_leaf_stats(struct zap *zap, zap_leaf_
[all...]
H A Dzap.h37 * Users should use only zap routines to access a zapobj - they should
123 * MT_EXACT will cause the zap object to only support MT_EXACT lookups,
281 * Returns (in *count) the number of attributes in the specified zap
331 struct zap;
336 struct zap *zc_zap;
364 * Initialize a zap cursor, pointing to the "first" attribute of the
382 * Get a persistent cookie pointing to the current position of the zap
386 * fewer than 2^22 (4.2 million) entries in the zap object.
391 * Initialize a zap cursor pointing to the position recorded by
411 uint64_t zs_blocksize; /* size of zap block
[all...]
/illumos-gate/usr/src/common/crypto/ecc/
H A Dsecitem.c158 SECITEM_FreeItem(SECItem *zap, PRBool freeit) argument
160 if (zap) {
162 kmem_free(zap->data, zap->len);
164 free(zap->data);
166 zap->data = 0;
167 zap->len = 0;
170 kmem_free(zap, sizeof (SECItem));
172 free(zap);
/illumos-gate/usr/src/lib/libzpool/common/
H A Dllib-lzpool47 #include <sys/zap.h>
/illumos-gate/usr/src/ucblib/libcurses/
H A Dcr_tty.c35 void zap(void);
138 zap(); /* get terminal description */
169 zap(void) function
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/
H A Dzfsimpl.h1136 uint64_t ds_snapnames_zapobj; /* zap obj of snaps; ==0 for snaps */
1158 * The names of zap entries in the DIRECTORY_OBJECT of the MOS.
1174 #define FZAP_BLOCK_SHIFT(zap) ((zap)->zap_block_shift)
1199 * The (fat) zap is stored in one object. It is an array of
1219 #define ZAP_EMBEDDED_PTRTBL_SHIFT(zap) (FZAP_BLOCK_SHIFT(zap) - 3 - 1)
1224 * word number (1<<ZAP_EMBEDDED_PTRTBL_SHIFT(zap)).
1226 #define ZAP_EMBEDDED_PTRTBL_ENT(zap, idx) \
1227 ((uint64_t *)(zap)
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c652 * Given a zap_leaf_phys_t, walk thru the zap leaf chunks to get the
721 fzap_lookup(dnode_phys_t *zap_dnode, zap_phys_t *zap, argument
728 /* Verify if this is a fat zap header block */
729 if (zap->zap_magic != (uint64_t)ZAP_MAGIC ||
730 zap->zap_flags != 0)
733 hash = zap_hash(zap->zap_salt, name);
738 if (zap->zap_ptrtbl.zt_numblks != 0) {
742 idx = ZAP_HASH_IDX(hash, zap->zap_ptrtbl.zt_shift);
743 blkid = ((uint64_t *)zap)[idx + (1<<(blksft-3-1))];
757 * Read in the data of a zap objec
[all...]
/illumos-gate/usr/src/cmd/zhack/
H A Dzhack.c40 #include <sys/zap.h>

Completed in 134 milliseconds

123