Home
last modified time | relevance | path

Searched refs:scf_handle (Results 1 – 11 of 11) sorted by path

/illumos-gate/usr/src/lib/libc/amd64/sys/
H A Duadmin.c73 void *scf_handle = dlopen("libscf.so.1", RTLD_LAZY); in load_scf() local
74 scf_simple_prop_get_t scf_simple_prop_get = (scf_handle == NULL)? NULL : in load_scf()
75 (scf_simple_prop_get_t)dlsym(scf_handle, "scf_simple_prop_get"); in load_scf()
77 (scf_handle == NULL)? NULL : in load_scf()
78 (scf_simple_prop_next_boolean_t)dlsym(scf_handle, in load_scf()
81 (scf_handle == NULL)? NULL : in load_scf()
82 (scf_simple_prop_free_t)dlsym(scf_handle, "scf_simple_prop_free"); in load_scf()
92 scf_handle = NULL; /* don't dlclose it */ in load_scf()
100 scf_handle = NULL; /* don't dlclose it */ in load_scf()
107 scf_handle = NULL; /* don't dlclose it */ in load_scf()
[all …]
/illumos-gate/usr/src/lib/libc/i386/sys/
H A Duadmin.c72 void *scf_handle = dlopen("libscf.so.1", RTLD_LAZY); in load_scf() local
73 scf_simple_prop_get_t scf_simple_prop_get = (scf_handle == NULL)? NULL : in load_scf()
74 (scf_simple_prop_get_t)dlsym(scf_handle, "scf_simple_prop_get"); in load_scf()
76 (scf_handle == NULL)? NULL : in load_scf()
77 (scf_simple_prop_next_boolean_t)dlsym(scf_handle, in load_scf()
80 (scf_handle == NULL)? NULL : in load_scf()
81 (scf_simple_prop_free_t)dlsym(scf_handle, "scf_simple_prop_free"); in load_scf()
91 scf_handle = NULL; /* don't dlclose it */ in load_scf()
99 scf_handle = NULL; /* don't dlclose it */ in load_scf()
106 scf_handle = NULL; /* don't dlclose it */ in load_scf()
[all …]
/illumos-gate/usr/src/lib/libc/sparc/sys/
H A Duadmin.c57 void *scf_handle = dlopen("libscf.so.1", RTLD_LAZY); in load_scf() local
58 scf_simple_prop_get_t scf_simple_prop_get = (scf_handle == NULL)? NULL : in load_scf()
59 (scf_simple_prop_get_t)dlsym(scf_handle, "scf_simple_prop_get"); in load_scf()
61 (scf_handle == NULL)? NULL : in load_scf()
62 (scf_simple_prop_next_boolean_t)dlsym(scf_handle, in load_scf()
65 (scf_handle == NULL)? NULL : in load_scf()
66 (scf_simple_prop_free_t)dlsym(scf_handle, "scf_simple_prop_free"); in load_scf()
76 scf_handle = NULL; /* don't dlclose it */ in load_scf()
84 scf_handle = NULL; /* don't dlclose it */ in load_scf()
91 scf_handle = NULL; /* don't dlclose it */ in load_scf()
[all …]
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp_prop.c69 scf_handle_t *scf_handle; member
194 if ((value = scf_value_create(h->scf_handle)) == NULL) in ndmp_smf_get_pg_name()
197 if ((prop = scf_property_create(h->scf_handle)) == NULL) { in ndmp_smf_get_pg_name()
248 (void) scf_handle_unbind(handle->scf_handle); in ndmp_smf_scf_fini()
249 scf_handle_destroy(handle->scf_handle); in ndmp_smf_scf_fini()
265 if (((handle->scf_handle = in ndmp_smf_scf_init()
267 (scf_handle_bind(handle->scf_handle) == 0)) { in ndmp_smf_scf_init()
269 scf_scope_create(handle->scf_handle)) == NULL) in ndmp_smf_scf_init()
272 if (scf_handle_get_local_scope(handle->scf_handle, in ndmp_smf_scf_init()
277 scf_service_create(handle->scf_handle)) == NULL) in ndmp_smf_scf_init()
[all …]
/illumos-gate/usr/src/lib/libscf/common/
H A Dlowlevel_impl.h62 struct scf_handle { struct
/illumos-gate/usr/src/lib/libscf/inc/
H A Dlibscf.h50 typedef struct scf_handle scf_handle_t;
/illumos-gate/usr/src/lib/libshare/common/
H A Dlibshare.c3124 add_or_update(scfutilhandle_t *scf_handle, int type, scf_value_t *value, in add_or_update() argument
3131 ret = scf_transaction_property_new(scf_handle->trans, in add_or_update()
3134 ret = scf_transaction_property_change(scf_handle->trans, in add_or_update()
3174 scfutilhandle_t *scf_handle; in sa_set_prop_by_prop() local
3186 scf_handle = impl_handle->scfhandle; in sa_set_prop_by_prop()
3189 entry = scf_entry_create(scf_handle->handle); in sa_set_prop_by_prop()
3210 if (scf_handle->trans == NULL) { in sa_set_prop_by_prop()
3225 ret = sa_get_instance(scf_handle, in sa_set_prop_by_prop()
3235 ret = sa_start_transaction(scf_handle, oname); in sa_set_prop_by_prop()
3243 scf_handle->trans, entry, name); in sa_set_prop_by_prop()
[all …]
/illumos-gate/usr/src/lib/libshare/smbfs/
H A Dlibshare_smbfs.h97 scf_handle_t *scf_handle; member
H A Dsmbfs_scfutil.c96 if (handle->scf_handle != NULL) { in smb_smf_scf_fini()
99 (void) scf_handle_unbind(handle->scf_handle); in smb_smf_scf_fini()
100 scf_handle_destroy(handle->scf_handle); in smb_smf_scf_fini()
101 handle->scf_handle = NULL; in smb_smf_scf_fini()
120 handle->scf_instance = scf_instance_create(handle->scf_handle); in smb_smf_instance_exists()
155 handle->scf_instance = scf_instance_create(handle->scf_handle); in smb_smf_instance_create()
185 handle->scf_instance = scf_instance_create(handle->scf_handle); in smb_smf_instance_delete()
215 handle->scf_handle = scf_handle_create(SCF_VERSION); in smb_smf_scf_init()
216 if (handle->scf_handle != NULL) { in smb_smf_scf_init()
217 if (scf_handle_bind(handle->scf_handle) == 0) { in smb_smf_scf_init()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dlibsmb.h91 scf_handle_t *scf_handle; member
H A Dsmb_scfutil.c79 scf_pg_create(handle->scf_handle)) == NULL) in smb_smf_create_service_pgroup()
128 scf_transaction_create(handle->scf_handle); in smb_smf_start_transaction()
204 value = scf_value_create(handle->scf_handle); in smb_smf_set_string_property()
205 entry = scf_entry_create(handle->scf_handle); in smb_smf_set_string_property()
262 value = scf_value_create(handle->scf_handle); in smb_smf_get_string_property()
263 prop = scf_property_create(handle->scf_handle); in smb_smf_get_string_property()
303 value = scf_value_create(handle->scf_handle); in smb_smf_set_integer_property()
304 entry = scf_entry_create(handle->scf_handle); in smb_smf_set_integer_property()
354 value = scf_value_create(handle->scf_handle); in smb_smf_get_integer_property()
355 prop = scf_property_create(handle->scf_handle); in smb_smf_get_integer_property()
[all …]