Lines Matching defs:entry

3774 entry_destroy_locked(scf_transaction_entry_t *entry)
3776 scf_handle_t *h = entry->entry_handle;
3780 entry_invalidate(entry, 0, 0);
3782 entry->entry_handle = NULL;
3786 uu_list_node_fini(entry, &entry->entry_link, tran_entry_pool);
3787 uu_free(entry);
3796 transaction_add(scf_transaction_t *tran, scf_transaction_entry_t *entry,
3808 if (h != entry->entry_handle)
3828 if (entry->entry_state != ENTRY_STATE_INVALID)
3829 entry_invalidate(entry, 0, 0);
3879 (void) strlcpy(entry->entry_namebuf, prop,
3880 sizeof (entry->entry_namebuf));
3881 entry->entry_property = entry->entry_namebuf;
3882 entry->entry_action = action;
3883 entry->entry_type = type;
3885 entry->entry_state = ENTRY_STATE_IN_TX_ACTION;
3886 entry->entry_tx = tran;
3887 uu_list_insert(tran->tran_props, entry, idx);
3910 scf_transaction_entry_t *entry, const char *prop, scf_type_t type)
3912 return (transaction_add(tx, entry, REP_PROTOCOL_TX_ENTRY_NEW,
3923 scf_transaction_entry_t *entry, const char *prop, scf_type_t type)
3925 return (transaction_add(tx, entry, REP_PROTOCOL_TX_ENTRY_CLEAR,
3936 scf_transaction_entry_t *entry, const char *prop, scf_type_t type)
3938 return (transaction_add(tx, entry, REP_PROTOCOL_TX_ENTRY_REPLACE,
3949 scf_transaction_entry_t *entry, const char *prop)
3951 return (transaction_add(tx, entry, REP_PROTOCOL_TX_ENTRY_DELETE,
4219 scf_entry_reset(scf_transaction_entry_t *entry)
4221 scf_handle_t *h = entry->entry_handle;
4224 entry_invalidate(entry, 0, 0);
4229 scf_entry_destroy_children(scf_transaction_entry_t *entry)
4231 scf_handle_t *h = entry->entry_handle;
4234 entry_invalidate(entry, 1, 0);
4239 scf_entry_destroy(scf_transaction_entry_t *entry)
4243 if (entry == NULL)
4246 h = entry->entry_handle;
4249 entry_destroy_locked(entry);
4257 * _INTERNAL - entry is corrupt
4258 * _INVALID_ARGUMENT - entry's transaction is not started or corrupt
4259 * entry is set to delete a property
4261 * _TYPE_MISMATCH - entry & v's types aren't compatible
4262 * _IN_USE - v has been added to another entry
4265 scf_entry_add_value(scf_transaction_entry_t *entry, scf_value_t *v)
4267 scf_handle_t *h = entry->entry_handle;
4274 if (entry->entry_state == ENTRY_STATE_INVALID) {
4279 if (entry->entry_state != ENTRY_STATE_IN_TX_ACTION) {
4284 if (entry->entry_tx->tran_state != TRAN_STATE_SETUP) {
4289 if (entry->entry_action == REP_PROTOCOL_TX_ENTRY_DELETE) {
4299 if (!scf_is_compatible_protocol_type(entry->entry_type,
4310 v->value_tx = entry;
4312 if (entry->entry_head == NULL) {
4313 entry->entry_head = v;
4314 entry->entry_tail = v;
4316 entry->entry_tail->value_next = v;
4317 entry->entry_tail = v;
6005 * matches contains only a single entry.
6077 * new entry cannot be allocated due to lack of memory, NULL is returned.