background_tracker
static struct bt_work *__find_pending(struct background_tracker *b,
static void update_stats(struct background_tracker *b, struct policy_work *w, int delta)
unsigned int btracker_nr_demotions_queued(struct background_tracker *b)
static bool max_work_reached(struct background_tracker *b)
static struct bt_work *alloc_work(struct background_tracker *b)
int btracker_queue(struct background_tracker *b,
int btracker_issue(struct background_tracker *b, struct policy_work **work)
void btracker_complete(struct background_tracker *b,
bool btracker_promotion_already_present(struct background_tracker *b,
struct background_tracker *btracker_create(unsigned int max_work)
struct background_tracker *b = kmalloc_obj(*b);
void btracker_destroy(struct background_tracker *b)
static bool __insert_pending(struct background_tracker *b,
struct background_tracker;
struct background_tracker *btracker_create(unsigned int max_work);
void btracker_destroy(struct background_tracker *b);
unsigned int btracker_nr_demotions_queued(struct background_tracker *b);
int btracker_queue(struct background_tracker *b,
int btracker_issue(struct background_tracker *b, struct policy_work **work);
void btracker_complete(struct background_tracker *b, struct policy_work *op);
bool btracker_promotion_already_present(struct background_tracker *b,
struct background_tracker *bg_work;