Home
last modified time | relevance | path

Searched refs:dn (Results 1 – 25 of 187) sorted by relevance

12345678

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddnode.c116 dnode_t *dn = arg; in dnode_cons() local
119 rw_init(&dn->dn_struct_rwlock, NULL, RW_DEFAULT, NULL); in dnode_cons()
120 mutex_init(&dn->dn_mtx, NULL, MUTEX_DEFAULT, NULL); in dnode_cons()
121 mutex_init(&dn->dn_dbufs_mtx, NULL, MUTEX_DEFAULT, NULL); in dnode_cons()
122 cv_init(&dn->dn_notxholds, NULL, CV_DEFAULT, NULL); in dnode_cons()
123 cv_init(&dn->dn_nodnholds, NULL, CV_DEFAULT, NULL); in dnode_cons()
129 zfs_refcount_create_untracked(&dn->dn_holds); in dnode_cons()
130 zfs_refcount_create(&dn->dn_tx_holds); in dnode_cons()
131 list_link_init(&dn->dn_link); in dnode_cons()
133 bzero(&dn->dn_next_nblkptr[0], sizeof (dn->dn_next_nblkptr)); in dnode_cons()
[all …]
H A Ddnode_sync.c42 dnode_increase_indirection(dnode_t *dn, dmu_tx_t *tx) in dnode_increase_indirection() argument
46 int nblkptr = dn->dn_phys->dn_nblkptr; in dnode_increase_indirection()
47 int old_toplvl = dn->dn_phys->dn_nlevels - 1; in dnode_increase_indirection()
48 int new_level = dn->dn_next_nlevels[txgoff]; in dnode_increase_indirection()
51 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dnode_increase_indirection()
54 ASSERT(dn->dn_phys->dn_type != DMU_OT_NONE); in dnode_increase_indirection()
55 ASSERT(new_level > 1 && dn->dn_phys->dn_nlevels > 0); in dnode_increase_indirection()
57 db = dbuf_hold_level(dn, dn->dn_phys->dn_nlevels, 0, FTAG); in dnode_increase_indirection()
60 dn->dn_phys->dn_nlevels = new_level; in dnode_increase_indirection()
61 dprintf("os=%p obj=%llu, increase to %d\n", dn->dn_objset, in dnode_increase_indirection()
[all …]
H A Ddmu.c169 dmu_buf_hold_noread_by_dnode(dnode_t *dn, uint64_t offset, in dmu_buf_hold_noread_by_dnode() argument
175 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dmu_buf_hold_noread_by_dnode()
176 blkid = dbuf_whichblock(dn, 0, offset); in dmu_buf_hold_noread_by_dnode()
177 db = dbuf_hold(dn, blkid, tag); in dmu_buf_hold_noread_by_dnode()
178 rw_exit(&dn->dn_struct_rwlock); in dmu_buf_hold_noread_by_dnode()
192 dnode_t *dn; in dmu_buf_hold_noread() local
197 err = dnode_hold(os, object, FTAG, &dn); in dmu_buf_hold_noread()
200 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dmu_buf_hold_noread()
201 blkid = dbuf_whichblock(dn, 0, offset); in dmu_buf_hold_noread()
202 db = dbuf_hold(dn, blkid, tag); in dmu_buf_hold_noread()
[all …]
H A Ddmu_tx.c43 typedef void (*dmu_tx_hold_func_t)(dmu_tx_t *tx, struct dnode *dn,
96 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
101 if (dn != NULL) { in dmu_tx_hold_dnode_impl()
102 (void) zfs_refcount_add(&dn->dn_holds, tx); in dmu_tx_hold_dnode_impl()
104 mutex_enter(&dn->dn_mtx); in dmu_tx_hold_dnode_impl()
110 ASSERT(dn->dn_assigned_txg == 0); in dmu_tx_hold_dnode_impl()
111 dn->dn_assigned_txg = tx->tx_txg; in dmu_tx_hold_dnode_impl()
112 (void) zfs_refcount_add(&dn->dn_tx_holds, tx); in dmu_tx_hold_dnode_impl()
113 mutex_exit(&dn->dn_mtx); in dmu_tx_hold_dnode_impl()
119 txh->txh_dnode = dn; in dmu_tx_hold_dnode_impl()
[all …]
H A Ddmu_object.c53 dnode_t *dn = NULL; in dmu_object_alloc_impl() local
168 dn_slots, FTAG, &dn); in dmu_object_alloc_impl()
170 rw_enter(&dn->dn_struct_rwlock, RW_WRITER); in dmu_object_alloc_impl()
175 if (dn->dn_type == DMU_OT_NONE) { in dmu_object_alloc_impl()
176 dnode_allocate(dn, ot, blocksize, 0, in dmu_object_alloc_impl()
178 rw_exit(&dn->dn_struct_rwlock); in dmu_object_alloc_impl()
179 dmu_tx_add_new_object(tx, dn); in dmu_object_alloc_impl()
180 dnode_rele(dn, FTAG); in dmu_object_alloc_impl()
183 rw_exit(&dn->dn_struct_rwlock); in dmu_object_alloc_impl()
184 dnode_rele(dn, FTAG); in dmu_object_alloc_impl()
[all …]
H A Ddbuf.c248 dnode_t *dn; in dbuf_find_bonus() local
251 if (dnode_hold(os, object, FTAG, &dn) == 0) { in dbuf_find_bonus()
252 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dbuf_find_bonus()
253 if (dn->dn_bonus != NULL) { in dbuf_find_bonus()
254 db = dn->dn_bonus; in dbuf_find_bonus()
257 rw_exit(&dn->dn_struct_rwlock); in dbuf_find_bonus()
258 dnode_rele(dn, FTAG); in dbuf_find_bonus()
721 dnode_t *dn; in dbuf_verify() local
731 dn = DB_DNODE(db); in dbuf_verify()
732 if (dn == NULL) { in dbuf_verify()
[all …]
H A Ddmu_objset.c396 dnode_t *dn = obj; in dnode_multilist_index_func() local
397 return (dnode_hash(dn->dn_objset, dn->dn_object) % in dnode_multilist_index_func()
885 dnode_t *dn; in dmu_objset_evict_dbufs() local
888 dn = list_head(&os->os_dnodes); in dmu_objset_evict_dbufs()
889 while (dn != NULL) { in dmu_objset_evict_dbufs()
895 if (dnode_add_ref(dn, FTAG)) { in dmu_objset_evict_dbufs()
896 list_insert_after(&os->os_dnodes, dn, &dn_marker); in dmu_objset_evict_dbufs()
899 dnode_evict_dbufs(dn); in dmu_objset_evict_dbufs()
900 dnode_rele(dn, FTAG); in dmu_objset_evict_dbufs()
903 dn = list_next(&os->os_dnodes, &dn_marker); in dmu_objset_evict_dbufs()
[all …]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_wrapper.c64 char *dn, LDAPMod **attrs, in _ns_ldap_add_ext() argument
69 return (ldap_add_ext(ld, dn, attrs, in _ns_ldap_add_ext()
75 char *dn, LDAPMod **attrs, in _ns_ldap_add_ext_s() argument
80 return (ldap_add_ext_s(ld, dn, attrs, serverctrls, clientctrls)); in _ns_ldap_add_ext_s()
85 char *dn, LDAPMod **attrs) in _ns_ldap_add() argument
89 return (ldap_add(ld, dn, attrs)); in _ns_ldap_add()
94 char *dn, LDAPMod **attrs) in _ns_ldap_add_s() argument
98 return (ldap_add_s(ld, dn, attrs)); in _ns_ldap_add_s()
106 char *dn, char *attr, struct berval *bvalue, in _ns_ldap_compare_ext() argument
111 return (ldap_compare_ext(ld, dn, attr, bvalue, in _ns_ldap_compare_ext()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dgetdn.c41 char *dn; in ldap_get_dn() local
56 if ( ber_scanf( &tmp, "{a", &dn ) == LBER_ERROR ) { in ldap_get_dn()
61 return( dn ); in ldap_get_dn()
66 ldap_dn2ufn( const char *dn ) in ldap_dn2ufn() argument
74 if ( dn == NULL ) { in ldap_dn2ufn()
75 dn = ""; in ldap_dn2ufn()
78 if ( ldap_is_dns_dn( dn ) || ( p = strchr( dn, '=' )) == NULL ) in ldap_dn2ufn()
79 return( nsldapi_strdup( (char *)dn )); in ldap_dn2ufn()
148 ldap_explode_dns( const char *dn ) in ldap_explode_dns() argument
157 if ( dn == NULL ) { in ldap_explode_dns()
[all …]
H A Dsbind.c38 static int simple_bind_nolock( LDAP *ld, const char *dn, const char *passwd,
40 static int simple_bindifnot_s( LDAP *ld, const char *dn, const char *passwd );
54 ldap_simple_bind( LDAP *ld, const char *dn, const char *passwd ) in ldap_simple_bind() argument
64 rc = simple_bind_nolock( ld, dn, passwd, 1 ); in ldap_simple_bind()
71 simple_bind_nolock( LDAP *ld, const char *dn, const char *passwd, in simple_bind_nolock() argument
93 if ( dn == NULL ) in simple_bind_nolock()
94 dn = ""; in simple_bind_nolock()
105 rc = (ld->ld_cache_bind)( ld, msgid, LDAP_REQ_BIND, dn, &bv, in simple_bind_nolock()
122 NSLDAPI_LDAP_VERSION( ld ), dn, LDAP_AUTH_SIMPLE, passwd ) == -1 ) { in simple_bind_nolock()
135 (char *)dn, ber )); in simple_bind_nolock()
[all …]
H A Ddelete.c45 ldap_delete( LDAP *ld, const char *dn ) in ldap_delete() argument
51 if ( ldap_delete_ext( ld, dn, NULL, NULL, &msgid ) == LDAP_SUCCESS ) { in ldap_delete()
60 ldap_delete_ext( LDAP *ld, const char *dn, LDAPControl **serverctrls, in ldap_delete_ext() argument
82 if ( dn == NULL ) { in ldap_delete_ext()
83 dn = ""; in ldap_delete_ext()
94 dn )) != 0 ) { in ldap_delete_ext()
108 if ( ber_printf( ber, "{its", *msgidp, LDAP_REQ_DELETE, dn ) in ldap_delete_ext()
124 (char *)dn, ber ); in ldap_delete_ext()
131 ldap_delete_s( LDAP *ld, const char *dn ) in ldap_delete_s() argument
133 return( ldap_delete_ext_s( ld, dn, NULL, NULL )); in ldap_delete_s()
[all …]
H A Drename.c61 const char *dn, in ldap_rename() argument
118 LDAP_REQ_MODRDN, dn, newrdn, deleteoldrdn )) in ldap_rename()
129 LDAP_REQ_MODDN, dn, newrdn, newparent, in ldap_rename()
146 if ( ber_printf( ber, "{it{ssb", *msgidp, LDAP_REQ_MODDN, dn, in ldap_rename()
176 (char *) dn, ber ); in ldap_rename()
183 ldap_modrdn2( LDAP *ld, const char *dn, const char *newrdn, int deleteoldrdn ) in ldap_modrdn2() argument
187 if ( ldap_rename( ld, dn, newrdn, NULL, deleteoldrdn, NULL, NULL, &msgid ) == LDAP_SUCCESS ) { in ldap_modrdn2()
196 ldap_modrdn( LDAP *ld, const char *dn, const char *newrdn ) in ldap_modrdn() argument
198 return( ldap_modrdn2( ld, dn, newrdn, 1 ) ); in ldap_modrdn()
205 const char *dn, in ldap_rename_s() argument
[all …]
H A Dcompare.c48 ldap_compare( LDAP *ld, const char *dn, const char *attr, const char *value ) in ldap_compare() argument
58 if ( ldap_compare_ext( ld, dn, attr, &bv, NULL, NULL, &msgid ) in ldap_compare()
68 ldap_compare_ext( LDAP *ld, const char *dn, const char *attr, in ldap_compare_ext() argument
98 if ( dn == NULL ) { in ldap_compare_ext()
99 dn = ""; in ldap_compare_ext()
110 LDAP_REQ_COMPARE, dn, attr, bvalue )) != 0 ) { in ldap_compare_ext()
124 if ( ber_printf( ber, "{it{s{so}}", *msgidp, LDAP_REQ_COMPARE, dn, in ldap_compare_ext()
141 (char *)dn, ber ); in ldap_compare_ext()
148 ldap_compare_s( LDAP *ld, const char *dn, const char *attr, in ldap_compare_s() argument
156 return( ldap_compare_ext_s( ld, dn, attr, &bv, NULL, NULL )); in ldap_compare_s()
[all …]
H A Dadd.c59 ldap_add( LDAP *ld, const char *dn, LDAPMod **attrs ) in ldap_add() argument
65 if ( ldap_add_ext( ld, dn, attrs, NULL, NULL, &msgid ) in ldap_add()
80 ldap_add_ext( LDAP *ld, const char *dn, LDAPMod **attrs, in ldap_add_ext() argument
115 if ( dn == NULL ) { in ldap_add_ext()
116 dn = ""; in ldap_add_ext()
126 if ( (rc = (ld->ld_cache_add)( ld, *msgidp, LDAP_REQ_ADD, dn, in ldap_add_ext()
141 if ( ber_printf( ber, "{it{s{", *msgidp, LDAP_REQ_ADD, dn ) in ldap_add_ext()
181 (char *) dn, ber ); in ldap_add_ext()
188 ldap_add_s( LDAP *ld, const char *dn, LDAPMod **attrs ) in ldap_add_s() argument
190 return( ldap_add_ext_s( ld, dn, attrs, NULL, NULL )); in ldap_add_s()
[all …]
H A Dmodify.c57 ldap_modify( LDAP *ld, const char *dn, LDAPMod **mods ) in ldap_modify() argument
63 if ( ldap_modify_ext( ld, dn, mods, NULL, NULL, &msgid ) in ldap_modify()
73 ldap_modify_ext( LDAP *ld, const char *dn, LDAPMod **mods, in ldap_modify_ext() argument
113 if ( dn == NULL ) { in ldap_modify_ext()
114 dn = ""; in ldap_modify_ext()
125 dn, mods )) != 0 ) { in ldap_modify_ext()
139 if ( ber_printf( ber, "{it{s{", *msgidp, LDAP_REQ_MODIFY, dn ) in ldap_modify_ext()
181 (char *)dn, ber ); in ldap_modify_ext()
188 ldap_modify_s( LDAP *ld, const char *dn, LDAPMod **mods ) in ldap_modify_s() argument
190 return( ldap_modify_ext_s( ld, dn, mods, NULL, NULL )); in ldap_modify_s()
[all …]
/illumos-gate/usr/src/lib/libresolv/
H A Dres_comp.c60 register u_char *cp, *dn; local
65 dn = exp_dn;
77 if (dn != exp_dn) {
78 if (dn >= eom)
80 *dn++ = '.';
82 if (dn+n >= eom)
87 if (dn + n + 2 >= eom)
89 *dn++ = '\\';
91 *dn++ = c;
117 *dn = '\0';
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_name.c96 char *dn, *eom; in ns_name_ntop() local
102 dn = dst; in ns_name_ntop()
111 if (dn != dst) { in ns_name_ntop()
112 if (dn >= eom) { in ns_name_ntop()
116 *dn++ = '.'; in ns_name_ntop()
122 if (dn + l >= eom) { in ns_name_ntop()
134 if ((m = decode_bitstring(&cp, dn, eom)) < 0) in ns_name_ntop()
139 dn += m; in ns_name_ntop()
145 if (dn + 1 >= eom) { in ns_name_ntop()
149 *dn++ = '\\'; in ns_name_ntop()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Ddnode.h106 #define DN_SLOT_IS_PTR(dn) ((void *)dn > DN_SLOT_INTERIOR) argument
107 #define DN_SLOT_IS_VALID(dn) ((void *)dn != NULL) argument
387 void dnode_setbonuslen(dnode_t *dn, int newsize, dmu_tx_t *tx);
388 void dnode_setbonus_type(dnode_t *dn, dmu_object_type_t, dmu_tx_t *tx);
389 void dnode_rm_spill(dnode_t *dn, dmu_tx_t *tx);
395 boolean_t dnode_add_ref(dnode_t *dn, void *ref);
396 void dnode_rele(dnode_t *dn, void *ref);
397 void dnode_rele_and_unlock(dnode_t *dn, void *tag, boolean_t evicting);
399 void dnode_setdirty(dnode_t *dn, dmu_tx_t *tx);
400 void dnode_sync(dnode_t *dn, dmu_tx_t *tx);
[all …]
/illumos-gate/usr/src/cmd/ldap/common/
H A Dldaptest.c223 static char dn[256], passwd[256]; in bind_prompt() local
227 getaline( dn, sizeof(dn), stdin, in bind_prompt()
229 if (( *authmethodp = atoi( dn )) == 3 ) { in bind_prompt()
238 getaline( dn, sizeof(dn), stdin, "re-bind dn? " ); in bind_prompt()
239 strcat( dn, dnsuffix ); in bind_prompt()
240 *dnp = dn; in bind_prompt()
242 if ( *authmethodp == LDAP_AUTH_SIMPLE && dn[0] != '\0' ) { in bind_prompt()
262 char passwd[64], dn[256], rdn[64], attr[64], value[256]; in main() local
401 getaline( dn, sizeof(dn), stdin, "dn? " ); in main()
402 strcat( dn, dnsuffix ); in main()
[all …]
H A Dldapmodify.c104 static int domodify( LDAP *ld, char *dn, LDAPMod **pmods, int newentry );
105 static int dodelete( LDAP *ld, char *dn );
106 static int dorename( LDAP *ld, char *dn, char *newrdn, char *newparent,
111 static int domodify( char *dn, LDAPMod **pmods, int newentry );
112 static int dodelete( char *dn );
113 static int dorename( char *dn, char *newrdn, char *newparent,
443 char *line, *dn, *type, *value, *newrdn, *newparent, *p; local
462 dn = newrdn = newparent = NULL;
491 ldaptool_progname, linenum, dn == NULL ? "" : dn );
499 if ( dn == NULL ) {
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_comp.c173 res_hnok(const char *dn) { in res_hnok() argument
174 int pch = PERIOD, ch = *dn++; in res_hnok()
177 int nch = *dn++; in res_hnok()
201 res_ownok(const char *dn) { in res_ownok() argument
202 if (asterchar(dn[0])) { in res_ownok()
203 if (periodchar(dn[1])) in res_ownok()
204 return (res_hnok(dn+2)); in res_ownok()
205 if (dn[1] == '\0') in res_ownok()
208 return (res_hnok(dn)); in res_ownok()
216 res_mailok(const char *dn) { in res_mailok() argument
[all …]
/illumos-gate/usr/src/cmd/tip/aculib/
H A Ddn11.c20 static int child = -1, dn; variable
31 if ((dn = open(acu, 1)) < 0) { in dn_dialer()
40 (void) close(dn); in dn_dialer()
54 nw = write(dn, num, lt = strlen(num)); in dn_dialer()
67 (void) close(dn); in dn_dialer()
71 (void) ioctl(dn, TCGETS, &buf); in dn_dialer()
73 (void) ioctl(dn, TCSETSF, &buf); in dn_dialer()
78 (void) close(dn); in dn_dialer()
117 if (dn > 0) in dn_abort()
118 (void) close(dn); in dn_abort()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dkerberos.ldif35 dn: cn=schema
48 dn: cn=schema
63 dn: cn=schema
75 dn: cn=schema
103 dn: cn=schema
115 dn: cn=schema
127 dn: cn=schema
141 dn: cn=schema
157 dn: cn=schema
170 dn: cn=schema
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_dnames.c80 fill_in_abbrevs_table(struct Dwarf_Dnames_index_header_s * dn, in fill_in_abbrevs_table() argument
83 Dwarf_Small *abdata = dn->din_abbreviations; in fill_in_abbrevs_table()
84 Dwarf_Unsigned ablen = dn->din_abbrev_table_size; in fill_in_abbrevs_table()
94 Dwarf_Debug dbg = dn->din_dbg; in fill_in_abbrevs_table()
180 dn->din_abbrev_list = (struct Dwarf_D_Abbrev_s *)calloc( in fill_in_abbrevs_table()
182 if(!dn->din_abbrev_list) { in fill_in_abbrevs_table()
187 dn->din_abbrev_list_count = abcount; in fill_in_abbrevs_table()
192 dn->din_abbrev_list[ct] = *tmpa; in fill_in_abbrevs_table()
193 dn->din_abbrev_list[ct].da_next = 0; in fill_in_abbrevs_table()
207 get_inhdr_cur(Dwarf_Dnames_Head dn, in get_inhdr_cur() argument
[all …]
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Dadutils.c90 char **dn; /* DN of entry */ member
256 const char *dn, in idmap_setqresults() argument
268 assert(dn != NULL); in idmap_setqresults()
270 if ((domain = adutils_dn2dns(dn)) == NULL) in idmap_setqresults()
288 if (q->dn != NULL) in idmap_setqresults()
289 *q->dn = strdup(dn); in idmap_setqresults()
394 char *dn; in idmap_extract_object() local
405 if ((dn = ldap_get_dn(ld, res)) == NULL) in idmap_extract_object()
414 idmapdlog(LOG_ERR, "%s has no %s", dn, OBJCLASS); in idmap_extract_object()
424 idmapdlog(LOG_ERR, "%s has unexpected %s", dn, OBJCLASS); in idmap_extract_object()
[all …]

12345678