Lines Matching defs:db
18 struct _cnid_tdb_private *db;
21 if (!cdb || !(db = cdb->_private) || !id || !st || !name || (db->flags & CNIDFLAG_DB_RO)) {
34 altdata = tdb_fetch(db->tdb_devino, key);
36 tdb_delete(db->tdb_devino, key);
41 data = tdb_fetch(db->tdb_cnid, key);
42 tdb_delete(db->tdb_cnid, key);
48 tdb_delete(db->tdb_didname, key);
59 altdata = tdb_fetch(db->tdb_didname, key);
61 tdb_delete(db->tdb_didname, key);
65 data = tdb_fetch(db->tdb_cnid, key);
66 tdb_delete(db->tdb_cnid, key);
72 tdb_delete(db->tdb_devino, key);
86 if (tdb_store(db->tdb_cnid, key, data, TDB_REPLACE)) {
95 if (tdb_store(db->tdb_devino, key, altdata, TDB_REPLACE)) {
102 if (tdb_store(db->tdb_didname, key, altdata, TDB_REPLACE)) {