| /netbsd/src/external/cddl/osnet/dist/common/nvpair/ |
| D | nvpair.c | 138 #define EMBEDDED_NVL(nvp) ((nvlist_t *)(void *)NVP_VALUE(nvp)) argument 139 #define EMBEDDED_NVL_ARRAY(nvp) ((nvlist_t **)(void *)NVP_VALUE(nvp)) argument 141 #define NVP_VALOFF(nvp) (NV_ALIGN(sizeof (nvpair_t) + (nvp)->nvp_name_sz)) argument 142 #define NVPAIR2I_NVP(nvp) \ argument 143 ((i_nvp_t *)((size_t)(nvp) - offsetof(i_nvp_t, nvi_nvp))) 190 nv_mem_zalloc(nvpriv_t *nvp, size_t size) in nv_mem_zalloc() argument 192 nv_alloc_t *nva = nvp->nvp_nva; in nv_mem_zalloc() 202 nv_mem_free(nvpriv_t *nvp, void *buf, size_t size) in nv_mem_free() argument 204 nv_alloc_t *nva = nvp->nvp_nva; in nv_mem_free() 308 nvpair_t *nvp; in nvp_buf_alloc() local [all …]
|
| D | fnvpair.c | 419 fnvpair_value_boolean_value(nvpair_t *nvp) in fnvpair_value_boolean_value() argument 422 VERIFY0(nvpair_value_boolean_value(nvp, &rv)); in fnvpair_value_boolean_value() 427 fnvpair_value_byte(nvpair_t *nvp) in fnvpair_value_byte() argument 430 VERIFY0(nvpair_value_byte(nvp, &rv)); in fnvpair_value_byte() 435 fnvpair_value_int8(nvpair_t *nvp) in fnvpair_value_int8() argument 438 VERIFY0(nvpair_value_int8(nvp, &rv)); in fnvpair_value_int8() 443 fnvpair_value_int16(nvpair_t *nvp) in fnvpair_value_int16() argument 446 VERIFY0(nvpair_value_int16(nvp, &rv)); in fnvpair_value_int16() 451 fnvpair_value_int32(nvpair_t *nvp) in fnvpair_value_int32() argument 454 VERIFY0(nvpair_value_int32(nvp, &rv)); in fnvpair_value_int32() [all …]
|
| /netbsd/src/external/cddl/osnet/dist/lib/libnvpair/ |
| D | libnvpair.c | 570 nvpair_t *nvp; in nvlist_print_with_indent() local 578 nvp = nvlist_next_nvpair(nvl, NULL); in nvlist_print_with_indent() 580 while (nvp) { in nvlist_print_with_indent() 581 data_type_t type = nvpair_type(nvp); in nvlist_print_with_indent() 583 name = nvpair_name(nvp); in nvlist_print_with_indent() 593 (void) nvpair_value_boolean_value(nvp, &val); in nvlist_print_with_indent() 599 (void) nvpair_value_byte(nvp, &val); in nvlist_print_with_indent() 605 (void) nvpair_value_int8(nvp, &val); in nvlist_print_with_indent() 611 (void) nvpair_value_uint8(nvp, &val); in nvlist_print_with_indent() 617 (void) nvpair_value_int16(nvp, &val); in nvlist_print_with_indent() [all …]
|
| /netbsd/src/external/cddl/osnet/dist/uts/common/sys/ |
| D | nvpair.h | 116 #define NVP_SIZE(nvp) ((nvp)->nvp_size) argument 117 #define NVP_NAME(nvp) ((char *)(nvp) + sizeof (nvpair_t)) argument 118 #define NVP_TYPE(nvp) ((nvp)->nvp_type) argument 119 #define NVP_NELEM(nvp) ((nvp)->nvp_value_elem) argument 120 #define NVP_VALUE(nvp) ((char *)(nvp) + NV_ALIGN(sizeof (nvpair_t) \ argument 121 + (nvp)->nvp_name_sz)) 335 boolean_t fnvpair_value_boolean_value(nvpair_t *nvp); 336 uchar_t fnvpair_value_byte(nvpair_t *nvp); 337 int8_t fnvpair_value_int8(nvpair_t *nvp); 338 int16_t fnvpair_value_int16(nvpair_t *nvp); [all …]
|
| /netbsd/src/usr.sbin/mrouted/ |
| D | main.c | 108 struct timeval sched, *svp = &sched, now, *nvp = &now; in main() local 218 gettimeofday(nvp, 0); in main() 219 if (nvp->tv_usec < 500000L){ in main() 220 svp->tv_usec = nvp->tv_usec + 500000L; in main() 221 svp->tv_sec = nvp->tv_sec; in main() 223 svp->tv_usec = nvp->tv_usec - 500000L; in main() 224 svp->tv_sec = nvp->tv_sec + 1; in main() 289 gettimeofday(nvp, 0); in main() 290 if (nvp->tv_sec > svp->tv_sec in main() 291 || (nvp->tv_sec == svp->tv_sec && nvp->tv_usec > svp->tv_usec)){ in main() [all …]
|
| /netbsd/src/sys/ufs/lfs/ |
| D | ulfs_vfsops.c | 90 struct vnode *nvp; in ulfs_root() local 93 if ((error = VFS_VGET(mp, (ino_t)ULFS_ROOTINO, lktype, &nvp)) != 0) in ulfs_root() 95 *vpp = nvp; in ulfs_root() 218 struct vnode *nvp; in ulfs_fhtovp() local 222 if ((error = VFS_VGET(mp, ufhp->ufid_ino, lktype, &nvp)) != 0) { in ulfs_fhtovp() 228 ip = VTOI(nvp); in ulfs_fhtovp() 231 vput(nvp); in ulfs_fhtovp() 235 *vpp = nvp; in ulfs_fhtovp()
|
| /netbsd/src/sys/ufs/ufs/ |
| D | ufs_vfsops.c | 91 struct vnode *nvp; in ufs_root() local 94 if ((error = VFS_VGET(mp, (ino_t)UFS_ROOTINO, lktype, &nvp)) != 0) in ufs_root() 96 *vpp = nvp; in ufs_root() 238 struct vnode *nvp; in ufs_fhtovp() local 242 if ((error = VFS_VGET(mp, ufhp->ufid_ino, lktype, &nvp)) != 0) { in ufs_fhtovp() 248 ip = VTOI(nvp); in ufs_fhtovp() 252 vput(nvp); in ufs_fhtovp() 256 *vpp = nvp; in ufs_fhtovp()
|
| /netbsd/src/sys/fs/nfs/client/ |
| D | nfs_clnode.c | 103 struct vnode *nvp; in ncl_nget() local 119 td, &nvp, newnfs_vncmpf, nfhp); in ncl_nget() 123 if (nvp != NULL) { in ncl_nget() 124 *npp = VTONFS(nvp); in ncl_nget() 129 error = getnewvnode(nfs_vnode_tag, mntp, &newnfs_vnodeops, &nvp); in ncl_nget() 134 vp = nvp; in ncl_nget() 176 td, &nvp, newnfs_vncmpf, np->n_fhp); in ncl_nget() 179 if (nvp != NULL) { in ncl_nget() 180 *npp = VTONFS(nvp); in ncl_nget()
|
| D | nfs_clport.c | 136 struct vnode *vp, *nvp; in nfscl_nget() local 149 td, &nvp, newnfs_vncmpf, nfhp); in nfscl_nget() 150 if (error == 0 && nvp != NULL) { in nfscl_nget() 161 VI_LOCK(nvp); in nfscl_nget() 162 if ((nvp->v_iflag & VI_DOOMED)) { in nfscl_nget() 163 VI_UNLOCK(nvp); in nfscl_nget() 164 vrele(nvp); in nfscl_nget() 167 VI_UNLOCK(nvp); in nfscl_nget() 174 if (nvp != NULL) { in nfscl_nget() 175 np = VTONFS(nvp); in nfscl_nget() [all …]
|
| /netbsd/src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/ |
| D | dsl_deleg.h | 66 int dsl_deleg_get(const char *ddname, nvlist_t **nvp); 67 int dsl_deleg_set(const char *ddname, nvlist_t *nvp, boolean_t unset); 71 int dsl_deleg_can_allow(char *ddname, nvlist_t *nvp, cred_t *cr); 72 int dsl_deleg_can_unallow(char *ddname, nvlist_t *nvp, cred_t *cr);
|
| D | dsl_prop.h | 76 int dsl_prop_get_all(objset_t *os, nvlist_t **nvp); 77 int dsl_prop_get_received(const char *dsname, nvlist_t **nvp);
|
| /netbsd/src/external/cddl/osnet/dist/uts/common/os/ |
| D | fm.c | 225 nvpair_t *nvp; in fm_nvprintr() local 227 for (nvp = nvlist_next_nvpair(nvl, NULL); in fm_nvprintr() 228 nvp != NULL; nvp = nvlist_next_nvpair(nvl, nvp)) { in fm_nvprintr() 230 data_type_t type = nvpair_type(nvp); in fm_nvprintr() 231 const char *name = nvpair_name(nvp); in fm_nvprintr() 252 (void) nvpair_value_boolean_value(nvp, &b); in fm_nvprintr() 257 (void) nvpair_value_byte(nvp, &i8); in fm_nvprintr() 262 (void) nvpair_value_int8(nvp, (void *)&i8); in fm_nvprintr() 267 (void) nvpair_value_uint8(nvp, &i8); in fm_nvprintr() 272 (void) nvpair_value_int16(nvp, (void *)&i16); in fm_nvprintr() [all …]
|
| /netbsd/src/external/cddl/osnet/dist/common/zfs/ |
| D | zfs_deleg.c | 148 zfs_deleg_verify_nvlist(nvlist_t *nvp) in zfs_deleg_verify_nvlist() argument 154 if (nvp == NULL) in zfs_deleg_verify_nvlist() 157 who = nvlist_next_nvpair(nvp, NULL); in zfs_deleg_verify_nvlist() 165 error = nvlist_lookup_nvlist(nvp, nvpair_name(who), &perms); in zfs_deleg_verify_nvlist() 183 } while ((who = nvlist_next_nvpair(nvp, who)) != NULL); in zfs_deleg_verify_nvlist()
|
| /netbsd/src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| D | dsl_deleg.c | 92 dsl_deleg_can_allow(char *ddname, nvlist_t *nvp, cred_t *cr) in dsl_deleg_can_allow() argument 100 while (whopair = nvlist_next_nvpair(nvp, whopair)) { in dsl_deleg_can_allow() 125 dsl_deleg_can_unallow(char *ddname, nvlist_t *nvp, cred_t *cr) in dsl_deleg_can_unallow() argument 137 while (whopair = nvlist_next_nvpair(nvp, whopair)) { in dsl_deleg_can_unallow() 274 dsl_deleg_set(const char *ddname, nvlist_t *nvp, boolean_t unset) in dsl_deleg_set() argument 281 dda.dda_nvlist = nvp; in dsl_deleg_set() 285 &dda, fnvlist_num_pairs(nvp), ZFS_SPACE_CHECK_RESERVED)); in dsl_deleg_set() 306 dsl_deleg_get(const char *ddname, nvlist_t **nvp) in dsl_deleg_get() argument 326 VERIFY(nvlist_alloc(nvp, NV_UNIQUE_NAME, KM_SLEEP) == 0); in dsl_deleg_get() 366 fnvlist_add_nvlist(*nvp, source, sp_nvp); in dsl_deleg_get()
|
| D | zfs_fuid.c | 128 nvlist_t *nvp = NULL; in zfs_fuid_table_load() local 137 &nvp, 0) == 0); in zfs_fuid_table_load() 138 VERIFY(nvlist_lookup_nvlist_array(nvp, FUID_NVP_ARRAY, in zfs_fuid_table_load() 158 nvlist_free(nvp); in zfs_fuid_table_load() 228 nvlist_t *nvp; in zfs_fuid_sync() local 255 VERIFY(nvlist_alloc(&nvp, NV_UNIQUE_NAME, KM_SLEEP) == 0); in zfs_fuid_sync() 268 VERIFY(nvlist_add_nvlist_array(nvp, FUID_NVP_ARRAY, in zfs_fuid_sync() 273 VERIFY(nvlist_size(nvp, &nvsize, NV_ENCODE_XDR) == 0); in zfs_fuid_sync() 275 VERIFY(nvlist_pack(nvp, &packed, &nvsize, in zfs_fuid_sync() 277 nvlist_free(nvp); in zfs_fuid_sync()
|
| D | spa.c | 217 spa_prop_get_config(spa_t *spa, nvlist_t **nvp) in spa_prop_get_config() argument 231 spa_prop_add_list(*nvp, ZPOOL_PROP_NAME, spa_name(spa), 0, src); in spa_prop_get_config() 232 spa_prop_add_list(*nvp, ZPOOL_PROP_SIZE, NULL, size, src); in spa_prop_get_config() 233 spa_prop_add_list(*nvp, ZPOOL_PROP_ALLOCATED, NULL, alloc, src); in spa_prop_get_config() 234 spa_prop_add_list(*nvp, ZPOOL_PROP_FREE, NULL, in spa_prop_get_config() 237 spa_prop_add_list(*nvp, ZPOOL_PROP_FRAGMENTATION, NULL, in spa_prop_get_config() 239 spa_prop_add_list(*nvp, ZPOOL_PROP_EXPANDSZ, NULL, in spa_prop_get_config() 241 spa_prop_add_list(*nvp, ZPOOL_PROP_READONLY, NULL, in spa_prop_get_config() 245 spa_prop_add_list(*nvp, ZPOOL_PROP_CAPACITY, NULL, cap, src); in spa_prop_get_config() 247 spa_prop_add_list(*nvp, ZPOOL_PROP_DEDUPRATIO, NULL, in spa_prop_get_config() [all …]
|
| D | dsl_prop.c | 1055 dsl_prop_get_all_ds(dsl_dataset_t *ds, nvlist_t **nvp, in dsl_prop_get_all_ds() argument 1064 VERIFY(nvlist_alloc(nvp, NV_UNIQUE_NAME, KM_SLEEP) == 0); in dsl_prop_get_all_ds() 1075 dsl_dataset_phys(ds)->ds_props_obj, setpoint, flags, *nvp); in dsl_prop_get_all_ds() 1089 dsl_dir_phys(dd)->dd_props_zapobj, setpoint, flags, *nvp); in dsl_prop_get_all_ds() 1142 dsl_prop_get_all(objset_t *os, nvlist_t **nvp) in dsl_prop_get_all() argument 1144 return (dsl_prop_get_all_ds(os->os_dsl_dataset, nvp, 0)); in dsl_prop_get_all() 1148 dsl_prop_get_received(const char *dsname, nvlist_t **nvp) in dsl_prop_get_received() argument 1164 error = dsl_prop_get_all_ds(os->os_dsl_dataset, nvp, flags); in dsl_prop_get_received()
|
| /netbsd/src/sys/fs/filecorefs/ |
| D | filecore_vfsops.c | 467 struct vnode *nvp; in filecore_root() local 470 if ((error = VFS_VGET(mp, FILECORE_ROOTINO, lktype, &nvp)) != 0) in filecore_root() 472 *vpp = nvp; in filecore_root() 528 struct vnode *nvp; in filecore_fhtovp() local 536 if ((error = VFS_VGET(mp, ifh.ifid_ino, lktype, &nvp)) != 0) { in filecore_fhtovp() 540 ip = VTOI(nvp); in filecore_fhtovp() 542 vput(nvp); in filecore_fhtovp() 546 *vpp = nvp; in filecore_fhtovp()
|
| /netbsd/src/sys/fs/nfs/server/ |
| D | nfs_nfsdport.c | 1823 struct vnode *nvp; in nfsrvd_readdirplus() local 2037 r = VFS_VGET(mp, at.na_fileid, LK_SHARED, &nvp); in nfsrvd_readdirplus() 2045 vput(nvp); in nfsrvd_readdirplus() 2096 nvp = NULL; in nfsrvd_readdirplus() 2111 LK_SHARED, &nvp); in nfsrvd_readdirplus() 2143 nvp = vp; in nfsrvd_readdirplus() 2146 r = VOP_LOOKUP(vp, &nvp, in nfsrvd_readdirplus() 2148 if (vp != nvp) in nfsrvd_readdirplus() 2162 nvp->v_type == VDIR && in nfsrvd_readdirplus() 2163 nvp->v_mountedhere != NULL) { in nfsrvd_readdirplus() [all …]
|
| D | nfs_nfsdsocket.c | 628 vnode_t vp, nvp, savevp; in nfsrvd_compound() local 859 nfsd_fhtovp(nd, &fh, LK_SHARED, &nvp, &nes, in nfsrvd_compound() 865 vp = nvp; in nfsrvd_compound() 873 nfsd_fhtovp(nd, &nfs_pubfh, LK_SHARED, &nvp, in nfsrvd_compound() 880 vp = nvp; in nfsrvd_compound() 888 nfsd_fhtovp(nd, &nfs_rootfh, LK_SHARED, &nvp, in nfsrvd_compound() 893 vp = nvp; in nfsrvd_compound() 980 &nvp, (fhandle_t *)fh.nfsrvfh_data, p, &vpnes); in nfsrvd_compound() 983 new_mp = nvp->v_mount; in nfsrvd_compound() 1002 NFSVOPUNLOCK(nvp, 0); in nfsrvd_compound() [all …]
|
| /netbsd/src/external/cddl/osnet/dist/lib/libdtrace/common/ |
| D | dt_pcb.c | 128 dt_provider_t *pvp, *nvp; in dt_pcb_pop() local 143 for (pvp = dt_list_next(&dtp->dt_provlist); pvp; pvp = nvp) { in dt_pcb_pop() 144 nvp = dt_list_next(pvp); in dt_pcb_pop()
|
| /netbsd/src/sys/fs/adosfs/ |
| D | advfsops.c | 331 struct vnode *nvp; in adosfs_root() local 334 error = VFS_VGET(mp, (ino_t)VFSTOADOSFS(mp)->rootb, lktype, &nvp); in adosfs_root() 338 *vpp = nvp; in adosfs_root() 699 struct vnode *nvp; in adosfs_fhtovp() local 711 if ((error = VFS_VGET(mp, ifh.ifid_ino, lktype, &nvp)) != 0) { in adosfs_fhtovp() 716 ap = VTOA(nvp); in adosfs_fhtovp() 718 vput(nvp); in adosfs_fhtovp() 723 *vpp = nvp; in adosfs_fhtovp()
|
| /netbsd/src/external/cddl/osnet/dist/cmd/zfs/ |
| D | zfs_main.c | 2597 nvpair_t *nvp = NULL; in print_us_node() local 2603 while ((nvp = nvlist_next_nvpair(nvl, nvp)) != NULL) { in print_us_node() 2604 if (strcmp(nvpair_name(nvp), in print_us_node() 2609 type = nvpair_type(nvp); in print_us_node() 2612 (void) nvpair_value_uint32(nvp, &val32); in print_us_node() 2615 (void) nvpair_value_uint64(nvp, &val64); in print_us_node() 2618 (void) nvpair_value_string(nvp, &strval); in print_us_node() 3994 nvpair_t *nvp = NULL; in zfs_do_receive() local 4056 while ((nvp = nvlist_next_nvpair(props, nvp))) { in zfs_do_receive() 4057 if (strcmp(nvpair_name(nvp), "origin") != 0) { in zfs_do_receive() [all …]
|
| /netbsd/src/sys/fs/union/ |
| D | union_subr.c | 1048 struct vnode *nvp = NULLVP; in union_dircache() local 1056 nvp = NULLVP; in union_dircache() 1082 error = union_allocvp(&nvp, vp->v_mount, NULLVP, NULLVP, 0, in union_dircache() 1085 vn_lock(nvp, LK_EXCLUSIVE | LK_RETRY); in union_dircache() 1087 VTOUNION(nvp)->un_hooknode = true; in union_dircache() 1088 VTOUNION(nvp)->un_dircache = dircache; in union_dircache() 1093 return (nvp); in union_dircache()
|
| /netbsd/src/sys/fs/cd9660/ |
| D | cd9660_vfsops.c | 709 struct vnode *nvp; in cd9660_fhtovp() local 721 if ((error = VFS_VGET(mp, ifh.ifid_ino, lktype, &nvp)) != 0) { in cd9660_fhtovp() 725 ip = VTOI(nvp); in cd9660_fhtovp() 727 vput(nvp); in cd9660_fhtovp() 731 *vpp = nvp; in cd9660_fhtovp()
|