Searched refs:handle (Results 1 - 25 of 1000) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/krb5/kadm5/clnt/
H A Dclient_handle.c25 int _kadm5_check_handle(void *handle) argument
27 CHECK_HANDLE(handle);
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dserver_handle.c25 int _kadm5_check_handle(void *handle) argument
27 CHECK_HANDLE(handle);
H A Dserver_init.c49 * Purpose: Check a server handle and return a com_err code if it is
54 * handle The server handle.
57 static int check_handle(void *handle) argument
59 CHECK_HANDLE(handle);
63 static int dup_db_args(kadm5_server_handle_t handle, char **db_args) argument
70 handle->db_args = NULL;
74 handle->db_args = calloc(sizeof(char*), count+1);
75 if (handle->db_args == NULL) {
81 handle
99 free_db_args(kadm5_server_handle_t handle) argument
187 kadm5_server_handle_t handle; local
422 kadm5_server_handle_t handle = server_handle; local
443 kadm5_server_handle_t handle = server_handle; local
456 kadm5_server_handle_t handle = server_handle; local
469 kadm5_server_handle_t handle = server_handle; local
485 _kadm5_check_handle(void *handle) argument
509 kadm5_init_iprop(void *handle) argument
[all...]
/illumos-gate/usr/src/uts/common/avs/ns/
H A Dmodel.h96 #define STRUCT_HANDLE(struct_type, handle) \
97 struct __##handle##_type { \
103 } handle = { NULL, DATAMODEL_ILP32 }
105 #define STRUCT_DECL(struct_type, handle) \
106 struct struct_type __##handle##_buf; \
107 STRUCT_HANDLE(struct_type, handle)
109 #define STRUCT_SET_HANDLE(handle, umodel, addr) \
110 (handle).model = (model_t)(umodel) & DATAMODEL_MASK; \
112 ((handle).ptr.m64) = (addr)
114 #define STRUCT_INIT(handle, umode
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Dmodel.h87 #define STRUCT_HANDLE(struct_type, handle) \
94 } handle = { NULL, DATAMODEL_ILP32 }
96 #define STRUCT_DECL(struct_type, handle) \
97 struct struct_type __##handle##_buf; \
98 STRUCT_HANDLE(struct_type, handle)
100 #define STRUCT_SET_HANDLE(handle, umodel, addr) \
101 (handle).model = (model_t)(umodel) & DATAMODEL_MASK; \
103 ((handle).ptr.m64) = (addr)
105 #define STRUCT_INIT(handle, umodel) \
106 STRUCT_SET_HANDLE(handle, umode
[all...]
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dmblib.c39 static void *handle = (void *)NULL; /* initialize it with NULL */ variable
47 if (handle == (void *)NULL) {
52 dlclose(handle);
54 handle = (void *)NULL;
66 if (handle != (void *)NULL) /* This library is already opened */
67 return (handle);
78 handle = dlopen(buf, 1);
79 if (handle != (void *)NULL)
85 return (handle);
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_parse.c75 int ns_msg_getflag(ns_msg handle, int flag) { argument
76 return(((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift);
104 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { argument
108 handle->_msg = msg;
109 handle->_eom = eom;
112 NS_GET16(handle->_id, msg);
115 NS_GET16(handle->_flags, msg);
119 NS_GET16(handle->_counts[i], msg);
122 if (handle->_counts[i] == 0)
123 handle
140 ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) argument
203 ns_parserr2(ns_msg *handle, ns_sect section, int rrnum, ns_rr2 *rr) argument
[all...]
/illumos-gate/usr/src/lib/libshare/smbfs/
H A Dsmbfs_scfutil.c62 * smb_smf_scf_fini(handle)
64 * must be called when done. Called with the handle allocated in
69 smb_smf_scf_fini(smb_scfhandle_t *handle) argument
71 if (handle != NULL) {
73 if (handle->scf_pg_iter != NULL) {
74 scf_iter_destroy(handle->scf_pg_iter);
75 handle->scf_pg_iter = NULL;
77 if (handle->scf_inst_iter != NULL) {
78 scf_iter_destroy(handle->scf_inst_iter);
79 handle
115 smb_smf_instance_exists(smb_scfhandle_t *handle, char *inst_name) argument
137 smb_smf_instance_create(smb_scfhandle_t *handle, char *serv_prefix, char *inst_name) argument
179 smb_smf_instance_delete(smb_scfhandle_t *handle, char *inst_name) argument
211 smb_scfhandle_t *handle; local
262 smb_smf_create_service_pgroup(smb_scfhandle_t *handle, char *pgroup) argument
309 smb_smf_create_instance_pgroup(smb_scfhandle_t *handle, char *pgroup) argument
358 smb_smf_delete_service_pgroup(smb_scfhandle_t *handle, char *pgroup) argument
409 smb_smf_delete_instance_pgroup(smb_scfhandle_t *handle, char *pgroup) argument
460 smb_smf_start_transaction(smb_scfhandle_t *handle) argument
502 smb_smf_end_transaction(smb_scfhandle_t *handle) argument
529 smb_smf_delete_property(smb_scfhandle_t *handle, char *propname) argument
573 smb_smf_set_string_property(smb_scfhandle_t *handle, char *propname, char *valstr) argument
638 smb_smf_get_string_property(smb_scfhandle_t *handle, char *propname, char *valstr, size_t sz) argument
676 smb_smf_set_integer_property(smb_scfhandle_t *handle, char *propname, int64_t valint) argument
734 smb_smf_get_integer_property(smb_scfhandle_t *handle, char *propname, int64_t *valint) argument
773 smb_smf_set_boolean_property(smb_scfhandle_t *handle, char *propname, uint8_t valbool) argument
831 smb_smf_get_boolean_property(smb_scfhandle_t *handle, char *propname, uint8_t *valbool) argument
868 smb_smf_set_opaque_property(smb_scfhandle_t *handle, char *propname, void *voidval, size_t sz) argument
932 smb_smf_get_opaque_property(smb_scfhandle_t *handle, char *propname, void *v, size_t sz) argument
970 smb_scfhandle_t *handle = NULL; local
[all...]
/illumos-gate/usr/src/lib/sun_fc/common/
H A DSun_fcCloseAdapter.cc38 * @param handle the handle to close
42 void Sun_fcCloseAdapter(HBA_HANDLE handle) { argument
45 Handle::closeHandle(handle);
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_scfutil.c59 * smb_smf_create_service_pgroup(handle, pgroup)
64 smb_smf_create_service_pgroup(smb_scfhandle_t *handle, char *pgroup) argument
69 if (handle == NULL)
73 * only create a handle if it doesn't exist. It is ok to exist
74 * since the pg handle will be set as a side effect.
76 if (handle->scf_pg == NULL)
77 if ((handle->scf_pg =
78 scf_pg_create(handle->scf_handle)) == NULL)
85 if (scf_service_get_pg(handle->scf_service,
86 pgroup, handle
113 smb_smf_start_transaction(smb_scfhandle_t *handle) argument
155 smb_smf_end_transaction(smb_scfhandle_t *handle) argument
189 smb_smf_set_string_property(smb_scfhandle_t *handle, char *propname, char *valstr) argument
253 smb_smf_get_string_property(smb_scfhandle_t *handle, char *propname, char *valstr, size_t sz) argument
290 smb_smf_set_integer_property(smb_scfhandle_t *handle, char *propname, int64_t valint) argument
347 smb_smf_get_integer_property(smb_scfhandle_t *handle, char *propname, int64_t *valint) argument
385 smb_smf_set_boolean_property(smb_scfhandle_t *handle, char *propname, uint8_t valbool) argument
442 smb_smf_get_boolean_property(smb_scfhandle_t *handle, char *propname, uint8_t *valbool) argument
478 smb_smf_set_opaque_property(smb_scfhandle_t *handle, char *propname, void *voidval, size_t sz) argument
541 smb_smf_get_opaque_property(smb_scfhandle_t *handle, char *propname, void *v, size_t sz) argument
576 smb_smf_delete_property(smb_scfhandle_t *handle, char *propname) argument
647 smb_scfhandle_t *handle; local
711 smb_smf_scf_fini(smb_scfhandle_t *handle) argument
[all...]
H A Dsmb_ht.c31 * table entries. A handle is associated with each table, which is used
35 * |handle|---> |index 0|--->|item|--->|item|--->
54 static size_t ht_default_hash(HT_HANDLE *handle, const char *key);
81 * The handle and the table are are malloc'd using a single call, to
83 * handle.
85 * On success a pointer to an opaque handle is returned. Otherwise a
133 ht_destroy_table(HT_HANDLE *handle) argument
138 if (handle == 0)
142 (void) ht_clean_table(handle);
143 while ((item = ht_findfirst(handle,
157 ht_get_total_items(HT_HANDLE *handle) argument
177 ht_default_hash(HT_HANDLE *handle, const char *key) argument
209 ht_set_cmpfn(HT_HANDLE *handle, HT_CMP cmpfn) argument
230 ht_add_item(HT_HANDLE *handle, const char *key, const void *data) argument
287 ht_replace_item(HT_HANDLE *handle, const char *key, const void *data) argument
308 ht_remove_item(HT_HANDLE *handle, const char *key) argument
372 ht_find_item(HT_HANDLE *handle, const char *key) argument
413 ht_register_callback(HT_HANDLE *handle, HT_CALLBACK callback) argument
440 ht_clean_table(HT_HANDLE *handle) argument
499 ht_mark_delete(HT_HANDLE *handle, HT_ITEM *item) argument
513 ht_clear_delete(HT_HANDLE *handle, HT_ITEM *item) argument
548 ht_findfirst(HT_HANDLE *handle, HT_ITERATOR *iterator) argument
590 HT_HANDLE *handle; local
[all...]
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp_prop.c67 /* NDMP scf handle structure */
112 ndmp_scfhandle_t *handle; local
117 if ((handle = ndmp_smf_scf_init(NDMP_GROUP_FMRI_PREFIX)) == NULL) {
120 if (ndmp_smf_get_pg_name(handle, prop, &pgname)) {
121 ndmp_smf_scf_fini(handle);
125 if (ndmp_smf_create_service_pgroup(handle, pgname)) {
126 ndmp_smf_scf_fini(handle);
130 ndmp_smf_scf_fini(handle);
134 if (ndmp_smf_get_property(handle, prop, lval, NDMP_PROP_LEN) != 0) {
135 ndmp_smf_scf_fini(handle);
148 ndmp_scfhandle_t *handle; local
223 ndmp_config_saveenv(ndmp_scfhandle_t *handle, boolean_t commit) argument
239 ndmp_smf_scf_fini(ndmp_scfhandle_t *handle) argument
260 ndmp_scfhandle_t *handle; local
309 ndmp_smf_create_service_pgroup(ndmp_scfhandle_t *handle, const char *pgroup) argument
353 ndmp_smf_start_transaction(ndmp_scfhandle_t *handle) argument
387 ndmp_smf_end_transaction(ndmp_scfhandle_t *handle, boolean_t commit) argument
409 ndmp_smf_delete_property(ndmp_scfhandle_t *handle, const char *propname) argument
441 ndmp_smf_set_property(ndmp_scfhandle_t *handle, const char *propname, const char *valstr) argument
520 ndmp_smf_get_property(ndmp_scfhandle_t *handle, const char *propname, char *valstr, size_t sz) argument
[all...]
/illumos-gate/usr/src/lib/libast/common/misc/
H A Derrorf.c33 errorf(void* handle, void* discipline, int level, ...) argument
38 errorv((discipline && handle) ? *((char**)handle) : (char*)handle, (discipline || level < 0) ? level : (level | ERROR_LIBRARY), ap);
/illumos-gate/usr/src/lib/libfstyp/common/
H A Dlibfstyp_module.h49 int fstyp_mod_init(int fd, off64_t offset, fstyp_mod_handle_t *handle);
50 void fstyp_mod_fini(fstyp_mod_handle_t handle);
51 int fstyp_mod_ident(fstyp_mod_handle_t handle);
52 int fstyp_mod_get_attr(fstyp_mod_handle_t handle, nvlist_t **attr);
53 int fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr);
/illumos-gate/usr/src/lib/libast/common/string/
H A Dstreval.c39 userconv(const char* s, char** end, void* handle) argument
41 return((*((Handle_t*)handle)->convert)(s, end));
47 Handle_t handle; local
49 return((handle.convert = convert) ? strexpr(s, end, userconv, &handle) : strexpr(s, end, (Convert_t)0, NiL));
/illumos-gate/usr/src/uts/sun4u/excalibur/sys/
H A Dxcalppm_var.h82 #define XCPPM_GET8(handle, address) \
83 ddi_get8(handle, (uint8_t *)(address))
85 #define XCPPM_SETGET8(handle, address, data) \
86 ddi_put8(handle, (uint8_t *)(address), data); \
87 data = XCPPM_GET8(handle, address)
89 #define XCPPM_GET16(handle, address) \
90 ddi_get16(handle, (uint16_t *)(address))
92 #define XCPPM_SETGET16(handle, address, data) \
93 ddi_put16(handle, (uint16_t *)(address), data); \
94 data = XCPPM_GET16(handle, addres
[all...]
/illumos-gate/usr/src/uts/common/io/nxge/npi/
H A Dnpi_espc.c31 static int npi_vpd_read_prop(npi_handle_t handle, uint32_t ep,
35 npi_espc_pio_enable(npi_handle_t handle) argument
37 NXGE_REG_WR64(handle, ESPC_REG_ADDR(ESPC_PIO_EN_REG), 0x1);
42 npi_espc_pio_disable(npi_handle_t handle) argument
44 NXGE_REG_WR64(handle, ESPC_REG_ADDR(ESPC_PIO_EN_REG), 0);
49 npi_espc_eeprom_entry(npi_handle_t handle, io_op_t op, uint32_t addr, argument
55 NPI_ERROR_MSG((handle.function, NPI_ERR_CTL,
66 NXGE_REG_WR64(handle, ESPC_REG_ADDR(ESPC_PIO_STATUS_REG), val);
67 EPC_WAIT_RW_COMP(handle, &val, EPC_WRITE_COMPLETE);
69 NPI_ERROR_MSG((handle
114 npi_espc_mac_addr_get(npi_handle_t handle, uint8_t *data) argument
133 npi_espc_num_ports_get(npi_handle_t handle, uint8_t *data) argument
145 npi_espc_num_macs_get(npi_handle_t handle, uint8_t *data) argument
158 npi_espc_model_str_get(npi_handle_t handle, char *data) argument
194 npi_espc_bd_model_str_get(npi_handle_t handle, char *data) argument
231 npi_espc_phy_type_get(npi_handle_t handle, uint8_t *data) argument
245 npi_espc_port_phy_type_get(npi_handle_t handle, uint8_t *data, uint8_t portn) argument
277 npi_espc_max_frame_get(npi_handle_t handle, uint16_t *data) argument
289 npi_espc_version_get(npi_handle_t handle, uint16_t *data) argument
301 npi_espc_img_sz_get(npi_handle_t handle, uint16_t *data) argument
314 npi_espc_chksum_get(npi_handle_t handle, uint8_t *data) argument
326 npi_espc_intr_num_get(npi_handle_t handle, uint8_t *data) argument
340 npi_espc_dump(npi_handle_t handle) argument
359 npi_espc_reg_get(npi_handle_t handle, int reg_idx) argument
370 vpd_rd(npi_handle_t handle, uint32_t addr) argument
380 npi_espc_vpd_info_get(npi_handle_t handle, p_npi_vpd_info_t vpdp, uint32_t rom_len) argument
585 npi_vpd_read_prop(npi_handle_t handle, uint32_t ep, const char *prop, int len, char *val) argument
[all...]
H A Dnpi_ipp.c111 npi_ipp_dump_regs(npi_handle_t handle, uint8_t port) argument
118 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL,
125 NXGE_REG_RD64(handle, (uint32_t)offset, &value);
127 NXGE_REG_RD64(handle, offset, &value);
129 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL, "0x%08llx "
134 NPI_REG_DUMP_MSG((handle.function, NPI_REG_CTL,
141 npi_ipp_read_regs(npi_handle_t handle, uint8_t port) argument
148 NPI_DEBUG_MSG((handle.function, NPI_IPP_CTL,
155 NXGE_REG_RD64(handle, (uint32_t)offset, &value);
157 NXGE_REG_RD64(handle, offse
167 npi_ipp_reset(npi_handle_t handle, uint8_t portn) argument
199 npi_ipp_config(npi_handle_t handle, config_op_t op, uint8_t portn, ipp_config_t config) argument
253 npi_ipp_set_max_pktsize(npi_handle_t handle, uint8_t portn, uint32_t bytes) argument
280 npi_ipp_iconfig(npi_handle_t handle, config_op_t op, uint8_t portn, ipp_iconfig_t iconfig) argument
331 npi_ipp_get_status(npi_handle_t handle, uint8_t portn, ipp_status_t *status) argument
344 npi_ipp_get_pfifo_rd_ptr(npi_handle_t handle, uint8_t portn, uint16_t *rd_ptr) argument
356 npi_ipp_get_pfifo_wr_ptr(npi_handle_t handle, uint8_t portn, uint16_t *wr_ptr) argument
368 npi_ipp_get_dfifo_rd_ptr(npi_handle_t handle, uint8_t portn, uint16_t *rd_ptr) argument
381 npi_ipp_get_dfifo_wr_ptr(npi_handle_t handle, uint8_t portn, uint16_t *wr_ptr) argument
394 npi_ipp_write_pfifo(npi_handle_t handle, uint8_t portn, uint8_t addr, uint32_t d0, uint32_t d1, uint32_t d2, uint32_t d3, uint32_t d4) argument
426 npi_ipp_read_pfifo(npi_handle_t handle, uint8_t portn, uint8_t addr, uint32_t *d0, uint32_t *d1, uint32_t *d2, uint32_t *d3, uint32_t *d4) argument
450 npi_ipp_write_dfifo(npi_handle_t handle, uint8_t portn, uint16_t addr, uint32_t d0, uint32_t d1, uint32_t d2, uint32_t d3, uint32_t d4) argument
482 npi_ipp_read_dfifo(npi_handle_t handle, uint8_t portn, uint16_t addr, uint32_t *d0, uint32_t *d1, uint32_t *d2, uint32_t *d3, uint32_t *d4) argument
506 npi_ipp_get_ecc_syndrome(npi_handle_t handle, uint8_t portn, uint16_t *syndrome) argument
519 npi_ipp_get_dfifo_eopm_rdptr(npi_handle_t handle, uint8_t portn, uint16_t *rdptr) argument
533 npi_ipp_get_state_mach(npi_handle_t handle, uint8_t portn, uint32_t *sm) argument
546 npi_ipp_get_ecc_err_count(npi_handle_t handle, uint8_t portn, uint8_t *err_cnt) argument
556 npi_ipp_get_pkt_dis_count(npi_handle_t handle, uint8_t portn, uint16_t *dis_cnt) argument
566 npi_ipp_get_cs_err_count(npi_handle_t handle, uint8_t portn, uint16_t *err_cnt) argument
[all...]
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_test.c89 if ((handle->max_errors != 0) &&\
90 (handle->max_errors == total_errors)) {\
91 mtest_message(handle, (END_MSG));\
92 error_summary(handle, total_errors);\
93 SET_CONDITION(handle, cond);\
98 error_summary(mtest_handle_t handle, uint_t total_errors) argument
103 mtest_message(handle, msgbuf);
108 error_print(char *writebuf, char *readbuf, mtest_handle_t handle, long pageno, argument
114 (void) sprintf(msgbuf, pg_header_msg, PAGE_SIZE(handle) * pageno);
115 mtest_message(handle, msgbu
132 memory_test_normal( mtest_handle_t handle) argument
287 memory_test_quick( mtest_handle_t handle) argument
416 memory_test_extended( mtest_handle_t handle) argument
[all...]
H A Dmema_test_subr.c39 mtest_handle_t handle,
55 new_ent->next = handle->alloc_list;
56 handle->alloc_list = new_ent;
64 mtest_handle_t handle,
69 p = &handle->alloc_list;
80 mtest_deallocate_buf_all(mtest_handle_t handle) argument
84 while ((p1 = handle->alloc_list) != NULL) {
85 handle->alloc_list = p1->next;
92 mtest_message(mtest_handle_t handle, const char *msg) argument
94 if (handle
38 mtest_allocate_buf( mtest_handle_t handle, size_t size) argument
63 mtest_deallocate_buf( mtest_handle_t handle, void *buf) argument
[all...]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pid/
H A Dtst.ret1.c52 handle(int sig) function
61 (void) signal(SIGUSR1, handle);
H A Dtst.ret2.c46 handle(int sig) function
55 (void) signal(SIGUSR1, handle);
/illumos-gate/usr/src/uts/common/sys/hotplug/
H A Dhpcsvc.h44 int (* callback)(dev_info_t *dip, hpc_slot_t handle,
48 extern int hpc_nexus_connect(hpc_slot_t handle, void *data, uint_t flags);
49 extern int hpc_nexus_disconnect(hpc_slot_t handle, void *data, uint_t flags);
50 extern int hpc_nexus_insert(hpc_slot_t handle, void *data, uint_t flags);
51 extern int hpc_nexus_remove(hpc_slot_t handle, void *data, uint_t flags);
52 extern int hpc_nexus_control(hpc_slot_t handle, int request, caddr_t arg);
53 extern int hpc_install_event_handler(hpc_slot_t handle, uint_t event_mask,
55 extern int hpc_remove_event_handler(hpc_slot_t handle);
/illumos-gate/usr/src/lib/libast/common/regex/
H A Dregalloc.c31 regalloc(void* handle, void*(*resize)(void*,void*,size_t), regflags_t flags) argument
35 state.disc.re_resizehandle = handle;
/illumos-gate/usr/src/lib/libsmedia/library/common/
H A Dl_misc.c82 is_server_running(rmedia_handle_t *handle) argument
195 handle->sm_clnt = clnt;
202 void *handle; local
240 handle = dlopen(pathname, RTLD_LAZY);
241 if (handle == NULL) {
245 d_fcn_ptr = (int32_t (*)(ushort_t, ushort_t))dlsym(handle,
249 (void) dlclose(handle);
255 v_fcn_ptr = (int32_t (*)(void))dlsym(handle,
259 (void) dlclose(handle);
267 old_handle = handle;
282 call_function(rmedia_handle_t *handle, void *ip, char *func_name) argument
314 release_handle(rmedia_handle_t *handle) argument
341 rmedia_handle_t *handle; local
[all...]

Completed in 138 milliseconds

1234567891011>>