Lines Matching refs:tx_id

59     unsigned int tx_id;  member
89 unsigned int tx_id; in next_tx() local
93 tx_id = ++s->last_tx; in next_tx()
94 } while (tx_id == XBT_NULL || tx_id == s->root_tx || in next_tx()
95 g_hash_table_lookup(s->transactions, GINT_TO_POINTER(tx_id))); in next_tx()
101 g_hash_table_foreach(s->transactions, nobble_tx, &tx_id); in next_tx()
103 return tx_id; in next_tx()
269 unsigned int tx_id; member
347 if (op->tx_id != XBT_NULL) { in xs_node_add_content()
457 if (op->tx_id != XBT_NULL) { in xs_node_rm()
570 if (op->tx_id != XBT_NULL) { in xs_node_set_perms()
762 GINT_TO_POINTER(op->tx_id)); in xs_node_walk()
828 xs_transaction_t tx_id, unsigned int dom_id, in init_walk_op() argument
849 op->tx_id = tx_id; in init_walk_op()
852 if (tx_id == XBT_NULL) { in init_walk_op()
857 GINT_TO_POINTER(tx_id)); in init_walk_op()
870 xs_transaction_t tx_id, const char *path, GByteArray *data) in xs_impl_read() argument
880 ret = init_walk_op(s, &op, tx_id, dom_id, path, &n); in xs_impl_read()
890 xs_transaction_t tx_id, const char *path, GByteArray *data) in xs_impl_write() argument
900 ret = init_walk_op(s, &op, tx_id, dom_id, path, &n); in xs_impl_write()
912 xs_transaction_t tx_id, const char *path, in xs_impl_directory() argument
924 ret = init_walk_op(s, &op, tx_id, dom_id, path, &n); in xs_impl_directory()
935 xs_transaction_t *tx_id) in xs_impl_transaction_start() argument
939 if (*tx_id != XBT_NULL) { in xs_impl_transaction_start()
950 tx->tx_id = next_tx(s); in xs_impl_transaction_start()
955 g_hash_table_insert(s->transactions, GINT_TO_POINTER(tx->tx_id), tx); in xs_impl_transaction_start()
959 *tx_id = tx->tx_id; in xs_impl_transaction_start()
1033 s->root_tx = tx->tx_id; in transaction_commit()
1061 xs_transaction_t tx_id, bool commit) in xs_impl_transaction_end() argument
1065 GINT_TO_POINTER(tx_id)); in xs_impl_transaction_end()
1075 g_hash_table_remove(s->transactions, GINT_TO_POINTER(tx_id)); in xs_impl_transaction_end()
1084 xs_transaction_t tx_id, const char *path) in xs_impl_rm() argument
1090 ret = init_walk_op(s, &op, tx_id, dom_id, path, &n); in xs_impl_rm()
1100 xs_transaction_t tx_id, const char *path, GList **perms) in xs_impl_get_perms() argument
1106 ret = init_walk_op(s, &op, tx_id, dom_id, path, &n); in xs_impl_get_perms()
1145 xs_transaction_t tx_id, const char *path, GList *perms) in xs_impl_set_perms() argument
1161 ret = init_walk_op(s, &op, tx_id, dom_id, path, &n); in xs_impl_set_perms()
1417 unsigned int tx_id; member
1448 n->serialized_tx = ss->tx_id; in save_node()
1479 static void save_tree(struct save_state *ss, uint32_t tx_id, XsNode *root) in save_tree() argument
1481 write_be32(ss->bytes, tx_id); in save_tree()
1482 ss->tx_id = tx_id; in save_tree()
1488 uint32_t tx_id = GPOINTER_TO_INT(key); in save_tx() local
1495 save_tree(ss, tx_id, n->root); in save_tx()
1645 static XsNode *lookup_tx_node(struct unsave_state *us, unsigned int tx_id) in lookup_tx_node() argument
1648 if (tx_id == us->s->root_tx) { in lookup_tx_node()
1652 t = g_hash_table_lookup(us->s->transactions, GINT_TO_POINTER(tx_id)); in lookup_tx_node()
1806 ret = consume_be32(us, &t->tx_id); in consume_tree()
1811 if (t->tx_id > us->s->last_tx) { in consume_tree()
1902 g_hash_table_insert(s->transactions, GINT_TO_POINTER(t->tx_id), t); in xs_impl_deserialize()