Home
last modified time | relevance | path

Searched full:dn (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddnode.c90 rt_name(dnode_t *dn, const char *name) in rt_name() argument
92 struct objset *os = dn->dn_objset; in rt_name()
98 (u_longlong_t)dn->dn_object, in rt_name()
139 dnode_t *dn = arg; in dnode_cons() local
141 rw_init(&dn->dn_struct_rwlock, NULL, RW_NOLOCKDEP, NULL); in dnode_cons()
142 mutex_init(&dn->dn_mtx, NULL, MUTEX_DEFAULT, NULL); in dnode_cons()
143 mutex_init(&dn->dn_dbufs_mtx, NULL, MUTEX_DEFAULT, NULL); in dnode_cons()
144 cv_init(&dn->dn_notxholds, NULL, CV_DEFAULT, NULL); in dnode_cons()
145 cv_init(&dn->dn_nodnholds, NULL, CV_DEFAULT, NULL); in dnode_cons()
151 zfs_refcount_create_untracked(&dn->dn_holds); in dnode_cons()
[all …]
H A Ddnode_sync.c43 dnode_increase_indirection(dnode_t *dn, dmu_tx_t *tx) in dnode_increase_indirection() argument
47 int nblkptr = dn->dn_phys->dn_nblkptr; in dnode_increase_indirection()
48 int old_toplvl = dn->dn_phys->dn_nlevels - 1; in dnode_increase_indirection()
49 int new_level = dn->dn_next_nlevels[txgoff]; in dnode_increase_indirection()
52 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dnode_increase_indirection()
55 ASSERT(dn->dn_phys->dn_type != DMU_OT_NONE); in dnode_increase_indirection()
56 ASSERT(new_level > 1 && dn->dn_phys->dn_nlevels > 0); in dnode_increase_indirection()
58 db = dbuf_hold_level(dn, dn->dn_phys->dn_nlevels, 0, FTAG); in dnode_increase_indirection()
61 dn->dn_phys->dn_nlevels = new_level; in dnode_increase_indirection()
62 dprintf("os=%p obj=%llu, increase to %d\n", dn->dn_objset, in dnode_increase_indirection()
[all …]
H A Ddmu.c176 dmu_buf_hold_noread_by_dnode(dnode_t *dn, uint64_t offset, in dmu_buf_hold_noread_by_dnode() argument
182 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dmu_buf_hold_noread_by_dnode()
183 blkid = dbuf_whichblock(dn, 0, offset); in dmu_buf_hold_noread_by_dnode()
184 db = dbuf_hold(dn, blkid, tag); in dmu_buf_hold_noread_by_dnode()
185 rw_exit(&dn->dn_struct_rwlock); in dmu_buf_hold_noread_by_dnode()
200 dnode_t *dn; in dmu_buf_hold_noread() local
205 err = dnode_hold(os, object, FTAG, &dn); in dmu_buf_hold_noread()
208 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dmu_buf_hold_noread()
209 blkid = dbuf_whichblock(dn, 0, offset); in dmu_buf_hold_noread()
210 db = dbuf_hold(dn, blkid, tag); in dmu_buf_hold_noread()
[all …]
H A Ddmu_object.c55 dnode_t *dn = NULL; in dmu_object_alloc_impl() local
184 dn_slots, tag, &dn); in dmu_object_alloc_impl()
186 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dmu_object_alloc_impl()
191 if (dn->dn_type == DMU_OT_NONE) { in dmu_object_alloc_impl()
192 dnode_allocate(dn, ot, blocksize, in dmu_object_alloc_impl()
195 rw_exit(&dn->dn_struct_rwlock); in dmu_object_alloc_impl()
196 dmu_tx_add_new_object(tx, dn); in dmu_object_alloc_impl()
203 *allocated_dnode = dn; in dmu_object_alloc_impl()
205 dnode_rele(dn, tag); in dmu_object_alloc_impl()
209 rw_exit(&dn->dn_struct_rwlock); in dmu_object_alloc_impl()
[all …]
H A Ddmu_tx.c45 typedef void (*dmu_tx_hold_func_t)(dmu_tx_t *tx, struct dnode *dn,
115 dmu_tx_hold_dnode_impl(dmu_tx_t *tx, dnode_t *dn, enum dmu_tx_hold_type type, in dmu_tx_hold_dnode_impl() argument
120 if (dn != NULL) { in dmu_tx_hold_dnode_impl()
121 (void) zfs_refcount_add(&dn->dn_holds, tx); in dmu_tx_hold_dnode_impl()
123 mutex_enter(&dn->dn_mtx); in dmu_tx_hold_dnode_impl()
125 * dn->dn_assigned_txg == tx->tx_txg doesn't pose a in dmu_tx_hold_dnode_impl()
129 ASSERT0(dn->dn_assigned_txg); in dmu_tx_hold_dnode_impl()
130 dn->dn_assigned_txg = tx->tx_txg; in dmu_tx_hold_dnode_impl()
131 (void) zfs_refcount_add(&dn->dn_tx_holds, tx); in dmu_tx_hold_dnode_impl()
132 mutex_exit(&dn->dn_mtx); in dmu_tx_hold_dnode_impl()
[all …]
H A Ddbuf.c374 dnode_t *dn; in dbuf_find_bonus() local
377 if (dnode_hold(os, object, FTAG, &dn) == 0) { in dbuf_find_bonus()
378 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dbuf_find_bonus()
379 if (dn->dn_bonus != NULL) { in dbuf_find_bonus()
380 db = dn->dn_bonus; in dbuf_find_bonus()
383 rw_exit(&dn->dn_struct_rwlock); in dbuf_find_bonus()
384 dnode_rele(dn, FTAG); in dbuf_find_bonus()
667 dnode_level_is_l2cacheable(blkptr_t *bp, dnode_t *dn, int64_t level) in dnode_level_is_l2cacheable() argument
669 if (dn->dn_objset->os_secondary_cache == ZFS_CACHE_ALL || in dnode_level_is_l2cacheable()
670 (dn->dn_objset->os_secondary_cache == ZFS_CACHE_METADATA && in dnode_level_is_l2cacheable()
[all …]
H A Ddmu_objset.c417 dnode_t *dn = obj; in dnode_multilist_index_func() local
426 return ((unsigned int)dnode_hash(dn->dn_objset, dn->dn_object) % in dnode_multilist_index_func()
948 dnode_t *dn; in dmu_objset_evict_dbufs() local
953 dn = list_head(&os->os_dnodes); in dmu_objset_evict_dbufs()
954 while (dn != NULL) { in dmu_objset_evict_dbufs()
960 if (dnode_add_ref(dn, FTAG)) { in dmu_objset_evict_dbufs()
961 list_insert_after(&os->os_dnodes, dn, dn_marker); in dmu_objset_evict_dbufs()
964 dnode_evict_dbufs(dn); in dmu_objset_evict_dbufs()
965 dnode_rele(dn, FTAG); in dmu_objset_evict_dbufs()
968 dn = list_next(&os->os_dnodes, dn_marker); in dmu_objset_evict_dbufs()
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dtrace_dnode.h48 TP_PROTO(dnode_t *dn, int64_t refcount, uint32_t dbufs),
49 TP_ARGS(dn, refcount, dbufs),
73 __entry->dn_object = dn->dn_object;
74 __entry->dn_type = dn->dn_type;
75 __entry->dn_bonuslen = dn->dn_bonuslen;
76 __entry->dn_bonustype = dn->dn_bonustype;
77 __entry->dn_nblkptr = dn->dn_nblkptr;
78 __entry->dn_checksum = dn->dn_checksum;
79 __entry->dn_compress = dn->dn_compress;
80 __entry->dn_nlevels = dn->dn_nlevels;
[all …]
/freebsd/crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/
H A Dkerberos.ldif42 dn: cn=schema
57 dn: cn=schema
70 dn: cn=schema
85 dn: cn=schema
97 dn: cn=schema
125 dn: cn=schema
137 dn: cn=schema
149 dn: cn=schema
163 dn: cn=schema
179 dn: cn=schema
[all …]
H A Dldap_principal.c283 char *user=NULL, *DN=NULL, *strval[10] = {NULL}; in krb5_ldap_delete_principal() local
306 ((st=krb5_get_userdn(context, entry, &(DN))) != 0)) in krb5_ldap_delete_principal()
309 if (DN == NULL) { in krb5_ldap_delete_principal()
311 k5_setmsg(context, st, _("DN information missing")); in krb5_ldap_delete_principal()
320 st = ldap_delete_ext_s(ld, DN, NULL, NULL); in krb5_ldap_delete_principal()
363 if ((st=checkattributevalue(ld, DN, "objectclass", attrvalues, &amask)) != 0) in krb5_ldap_delete_principal()
377 st=ldap_modify_ext_s(ld, DN, mods, NULL, NULL); in krb5_ldap_delete_principal()
388 if (DN) in krb5_ldap_delete_principal()
389 free (DN); in krb5_ldap_delete_principal()
420 rename_principal_rdn(krb5_context context, LDAP *ld, const char *dn, in rename_principal_rdn() argument
[all …]
H A Dldap_krbcontainer.c43 char *dn=NULL; in krb5_ldap_read_krbcontainer_dn() local
55 &dn)) != 0) { in krb5_ldap_read_krbcontainer_dn()
63 if (dn == NULL) { in krb5_ldap_read_krbcontainer_dn()
66 NULL, &dn)) != 0) { in krb5_ldap_read_krbcontainer_dn()
73 if (dn == NULL) { in krb5_ldap_read_krbcontainer_dn()
79 *container_dn = dn; in krb5_ldap_read_krbcontainer_dn()
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_taskdeps.h18 #define KMP_ACQUIRE_DEPNODE(gtid, n) __kmp_acquire_lock(&(n)->dn.lock, (gtid))
19 #define KMP_RELEASE_DEPNODE(gtid, n) __kmp_release_lock(&(n)->dn.lock, (gtid))
25 kmp_int32 n = KMP_ATOMIC_DEC(&node->dn.nrefs) - 1; in __kmp_node_deref()
31 KMP_ASSERT(node->dn.nrefs == 0); in __kmp_node_deref()
116 if (UNLIKELY(node && (node->dn.mtx_num_locks < 0))) { in __kmp_release_deps()
118 node->dn.mtx_num_locks = -node->dn.mtx_num_locks; in __kmp_release_deps()
119 for (int i = node->dn.mtx_num_locks - 1; i >= 0; --i) { in __kmp_release_deps()
120 KMP_DEBUG_ASSERT(node->dn.mtx_locks[i] != NULL); in __kmp_release_deps()
121 __kmp_release_lock(node->dn.mtx_locks[i], gtid); in __kmp_release_deps()
144 node->dn.task = in __kmp_release_deps()
[all …]
H A Dkmp_taskdeps.cpp37 node->dn.successors = NULL; in __kmp_init_node()
38 node->dn.task = NULL; // will point to the right task in __kmp_init_node()
41 node->dn.mtx_locks[i] = NULL; in __kmp_init_node()
42 node->dn.mtx_num_locks = 0; in __kmp_init_node()
43 __kmp_init_lock(&node->dn.lock); in __kmp_init_node()
44 KMP_ATOMIC_ST_RLX(&node->dn.nrefs, 1); // init creates the first reference in __kmp_init_node()
46 node->dn.id = KMP_ATOMIC_INC(&kmp_node_id_seed); in __kmp_init_node()
54 KMP_ATOMIC_INC(&node->dn.nrefs); in __kmp_node_ref()
222 kmp_taskdata_t *task_source = KMP_TASK_TO_TASKDATA(source->dn.task); in __kmp_track_dependence()
224 if (source->dn.task && sink_task) { in __kmp_track_dependence()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Ddnode.h108 #define DN_SLOT_IS_PTR(dn) ((void *)dn > DN_SLOT_INTERIOR) argument
109 #define DN_SLOT_IS_VALID(dn) ((void *)dn != NULL) argument
197 * Thus dn->dn_num_slots is 1 greater than the corresponding
293 dnode_phys_t *dn_phys; /* pointer into dn->dn_dbuf->db.db_data */
385 #define DN_DBUFS_COUNT(dn) ((dn)->dn_dbufs_count + \ argument
386 avl_numnodes(&(dn)->dn_dbufs))
421 void dnode_setbonuslen(dnode_t *dn, int newsize, dmu_tx_t *tx);
422 void dnode_setbonus_type(dnode_t *dn, dmu_object_type_t, dmu_tx_t *tx);
423 void dnode_rm_spill(dnode_t *dn, dmu_tx_t *tx);
429 boolean_t dnode_add_ref(dnode_t *dn, const void *ref);
[all …]
/freebsd/lib/libc/nameser/
H A Dns_name.c98 char *dn, *eom; in ns_name_ntop() local
104 dn = dst; in ns_name_ntop()
113 if (dn != dst) { in ns_name_ntop()
114 if (dn >= eom) { in ns_name_ntop()
118 *dn++ = '.'; in ns_name_ntop()
124 if (dn + l >= eom) { in ns_name_ntop()
136 if ((m = decode_bitstring(&cp, dn, eom)) < 0) in ns_name_ntop()
141 dn += m; in ns_name_ntop()
147 if (dn + 1 >= eom) { in ns_name_ntop()
151 *dn++ = '\\'; in ns_name_ntop()
[all …]
/freebsd/usr.bin/tip/libacu/
H A Ddn11.c36 * Routines for dialing up on DN-11
41 static pid_t child = -1, dn; variable
54 if ((dn = open(acu, 1)) < 0) { in dn_dialer()
63 close(dn); in dn_dialer()
77 nw = write(dn, num, lt = strlen(num)); in dn_dialer()
90 close(dn); in dn_dialer()
94 tcgetattr(dn, &cntrl); in dn_dialer()
96 tcsetattr(dn, TCSANOW, &cntrl); in dn_dialer()
101 close(dn); in dn_dialer()
136 if (dn > 0) in dn_abort()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUDelayedMCExpr.cpp15 static msgpack::DocNode getNode(msgpack::DocNode DN, msgpack::Type Type, in getNode() argument
17 msgpack::Document *Doc = DN.getDocument(); in getNode()
30 void DelayedMCExprs::assignDocNode(msgpack::DocNode &DN, msgpack::Type Type, in assignDocNode() argument
35 DN = getNode(DN, Type, Res); in assignDocNode()
40 DelayedExprs.emplace_back(DN, Type, ExprValue); in assignDocNode()
53 DE.DN = getNode(DE.DN, DE.Type, Res); in resolveDelayedExpressions()
H A DAMDGPUDelayedMCExpr.h20 msgpack::DocNode &DN; member
23 Expr(msgpack::DocNode &DN, msgpack::Type Type, const MCExpr *ExprValue) in Expr()
24 : DN(DN), Type(Type), ExprValue(ExprValue) {} in Expr()
31 void assignDocNode(msgpack::DocNode &DN, msgpack::Type Type,
/freebsd/contrib/bearssl/src/x509/
H A Dx509_minimal.t064 * -- Start of the issuer DN: the secondary hash engine is started,
65 * to process the encoded issuer DN.
67 * -- End of the issuer DN: the secondary hash engine is stopped. The
71 * -- Start of the subject DN: the secondary hash engine is started,
72 * to process the encoded subject DN.
77 * -- End of the subject DN: the secondary hash engine is stopped. The
84 * -- Otherwise, the hashed subject DN is compared with the saved
89 * contains the hash of the issuer DN for the current certificate,
90 * and current_dn_hash[] contains the hash of the subject DN for the
99 * DN are also compared with the "direct trust" keys; if the key
[all …]
/freebsd/lib/libc/resolv/
H A Dres_comp.c153 res_hnok(const char *dn) { in res_hnok() argument
154 int pch = PERIOD, ch = *dn++; in res_hnok()
157 int nch = *dn++; in res_hnok()
181 res_ownok(const char *dn) { in res_ownok() argument
182 if (asterchar(dn[0])) { in res_ownok()
183 if (periodchar(dn[1])) in res_ownok()
184 return (res_hnok(dn+2)); in res_ownok()
185 if (dn[1] == '\0') in res_ownok()
188 return (res_hnok(dn)); in res_ownok()
196 res_mailok(const char *dn) { in res_mailok() argument
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Dsend_realloc_dnode_size.ksh48 rm -f $BACKDIR/fs-dn-legacy
49 rm -f $BACKDIR/fs-dn-1k
50 rm -f $BACKDIR/fs-dn-2k
97 log_must eval "zfs send $POOL/fs@a > $BACKDIR/fs-dn-1k"
98 log_must eval "zfs send -i $POOL/fs@a $POOL/fs@b > $BACKDIR/fs-dn-legacy"
99 log_must eval "zfs send -i $POOL/fs@b $POOL/fs@c > $BACKDIR/fs-dn-2k"
103 log_must eval "zfs recv $POOL/newfs < $BACKDIR/fs-dn-1k"
104 log_must eval "zfs recv $POOL/newfs < $BACKDIR/fs-dn-legacy"
105 log_must eval "zfs recv $POOL/newfs < $BACKDIR/fs-dn-2k"
/freebsd/sys/dev/proto/
H A Dproto_core.c122 const char *dn, *ep, *ev; in proto_probe() local
131 dn = ev; in proto_probe()
132 while (*dn != '\0') { in proto_probe()
133 ep = dn; in proto_probe()
136 if ((ep - dn) > pfxlen && in proto_probe()
137 strncmp(dn, prefix, pfxlen) == 0) in proto_probe()
139 dn = (*ep == ',') ? ep + 1 : ep; in proto_probe()
146 dn = ev; in proto_probe()
148 while (*dn != '\0') { in proto_probe()
149 ep = dn; in proto_probe()
[all …]
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_conv.c238 dos2unixfn(u_char dn[11], u_char *un, int lower, struct msdosfsmount *pmp) in dos2unixfn()
250 if (*dn == SLOT_E5) in dos2unixfn()
251 *dn = 0xe5; in dos2unixfn()
256 for (i = 8; i > 0 && *dn != ' ';) { in dos2unixfn()
257 c = dos2unixchr(tmpbuf, __DECONST(const u_char **, &dn), &i, in dos2unixfn()
264 dn += i; in dos2unixfn()
270 if (*dn != ' ') { in dos2unixfn()
273 for (i = 3; i > 0 && *dn != ' ';) { in dos2unixfn()
274 c = dos2unixchr(tmpbuf, __DECONST(const u_char **, &dn), in dos2unixfn()
299 unix2dosfn(const u_char *un, u_char dn[12], size_t unlen, u_int gen, in unix2dosfn()
[all …]
/freebsd/crypto/heimdal/lib/gssapi/ntlm/
H A Diter_cred.c65 ntlm_cred dn; in _gss_ntlm_iter_creds_f() local
80 dn = calloc(1, sizeof(*dn)); in _gss_ntlm_iter_creds_f()
81 if (dn == NULL) { in _gss_ntlm_iter_creds_f()
86 dn->username = user; in _gss_ntlm_iter_creds_f()
87 dn->domain = domain; in _gss_ntlm_iter_creds_f()
89 cred_iter(userctx, GSS_NTLM_MECHANISM, (gss_cred_id_t)dn); in _gss_ntlm_iter_creds_f()
/freebsd/usr.sbin/makefs/msdos/
H A Dmsdosfs_conv.c296 unix2dosfn(const u_char *un, u_char dn[12], size_t unlen, u_int gen) in unix2dosfn()
309 dn[i] = ' '; in unix2dosfn()
310 dn[11] = 0; in unix2dosfn()
317 dn[0] = '.'; in unix2dosfn()
321 dn[0] = '.'; in unix2dosfn()
322 dn[1] = '.'; in unix2dosfn()
366 if (dp[i] != (dn[j] = unix2dos[dp[i]]) in unix2dosfn()
369 if (!dn[j]) { in unix2dosfn()
371 dn[j--] = ' '; in unix2dosfn()
389 dn[j] = ' '; in unix2dosfn()
[all …]

12345678910>>...15