lib/ovsdb-idl.c
/* Initializes a row for use in an indexed query.
 * Not intended for direct usage.
 */
Initializes a row for use in an indexed query.
Not intended for direct usage.
Initializes a row for use in an indexed query . Not intended for direct usage .
struct ovsdb_idl_row *
ovsdb_idl_index_init_row(struct ovsdb_idl_index *index)
{
    const struct ovsdb_idl_table_class *class = index->table->class_;
    struct ovsdb_idl_row *row = xzalloc(class->allocation_size);
    class->row_init(row);
    row->uuid = index_row_uuid;
    row->new_datum = xmalloc(class->n_columns * sizeof *row->new_datum);
    row->written = bitmap_allocate(class->n_columns);
    row->table = index->table;
    ovs_list_init(&row->src_arcs);
    ovs_list_init(&row->dst_arcs);
    return row;
}
struct ovsdb_idl_row * ovsdb_idl_index_init_row ( struct ovsdb_idl_index * index ) { const struct ovsdb_idl_table_class * class = index -> table -> class_ ; struct ovsdb_idl_row * row = xzalloc ( class -> allocation_size ) ; class -> row_init ( row ) ; row -> uuid = index_row_uuid ; row -> new_datum = xmalloc ( class -> n_columns * sizeof * row -> new_datum ) ; row -> written = bitmap_allocate ( class -> n_columns ) ; row -> table = index -> table ; ovs_list_init ( & row -> src_arcs ) ; ovs_list_init ( & row -> dst_arcs ) ; return row ; }
Initializes a row for use in an indexed query.
Initializes a row for use in an indexed query .
/* arcs are not used for index row, but it doesn't harm to initialize */