Lines Matching refs:hndl
117 mhash_retrieve_entry(scf_handle_t *hndl, const char *name, uchar_t *hash, in mhash_retrieve_entry() argument
137 if ((scope = scf_scope_create(hndl)) == NULL || in mhash_retrieve_entry()
138 (svc = scf_service_create(hndl)) == NULL || in mhash_retrieve_entry()
139 (pg = scf_pg_create(hndl)) == NULL || in mhash_retrieve_entry()
140 (prop = scf_property_create(hndl)) == NULL || in mhash_retrieve_entry()
141 (val = scf_value_create(hndl)) == NULL) { in mhash_retrieve_entry()
146 if (scf_handle_get_local_scope(hndl, scope) < 0) { in mhash_retrieve_entry()
233 mhash_store_entry(scf_handle_t *hndl, const char *name, const char *fname, in mhash_store_entry() argument
254 if ((scope = scf_scope_create(hndl)) == NULL || in mhash_store_entry()
255 (svc = scf_service_create(hndl)) == NULL || in mhash_store_entry()
256 (pg = scf_pg_create(hndl)) == NULL || in mhash_store_entry()
257 (prop = scf_property_create(hndl)) == NULL) { in mhash_store_entry()
264 if (scf_handle_get_local_scope(hndl, scope) != SCF_SUCCESS) { in mhash_store_entry()
359 if ((e = scf_entry_create(hndl)) == NULL || in mhash_store_entry()
360 (val = scf_value_create(hndl)) == NULL || in mhash_store_entry()
361 (fe = scf_entry_create(hndl)) == NULL || in mhash_store_entry()
362 (fval = scf_value_create(hndl)) == NULL || in mhash_store_entry()
363 (ae = scf_entry_create(hndl)) == NULL || in mhash_store_entry()
364 (aval = scf_value_create(hndl)) == NULL) { in mhash_store_entry()
388 tx = scf_transaction_create(hndl); in mhash_store_entry()
592 mhash_test_file(scf_handle_t *hndl, const char *file, uint_t is_profile, in mhash_test_file() argument
653 hashash = mhash_retrieve_entry(hndl, pname, stored_hash, &action) == 0; in mhash_test_file()
753 (void) mhash_store_entry(hndl, pname, file, hash, in mhash_test_file()
785 (void) mhash_store_entry(hndl, pname, file, hash, in mhash_test_file()