Lines Matching full:pdb
78 * count: refcount for the pdb
101 * aa_get_pdb - increment refcount on @pdb
102 * @pdb: policydb (MAYBE NULL)
104 * Returns: pointer to @pdb if @pdb is NULL will return NULL
105 * Requires: @pdb must be held with valid refcount when called
107 static inline struct aa_policydb *aa_get_pdb(struct aa_policydb *pdb) in aa_get_pdb() argument
109 if (pdb) in aa_get_pdb()
110 kref_get(&(pdb->count)); in aa_get_pdb()
112 return pdb; in aa_get_pdb()
116 * aa_put_pdb - put a pdb refcount
117 * @pdb: pdb to put refcount (MAYBE NULL)
119 * Requires: if @pdb != NULL that a valid refcount be held
121 static inline void aa_put_pdb(struct aa_policydb *pdb) in aa_put_pdb() argument
123 if (pdb) in aa_put_pdb()
124 kref_put(&pdb->count, aa_pdb_free_kref); in aa_put_pdb()