/** * ref_tracker_dir_init - initialize a ref_tracker dir * @dir: ref_tracker_dir to be initialized * @quarantine_count: max number of entries to be tracked * @class: pointer to static string that describes object type * * Initialize a ref_tracker_dir. If debugfs is configured, then a file * will also be created for it under the top-level ref_tracker debugfs * directory. * * Note that @class must point to a static string.
*/ staticinlinevoid ref_tracker_dir_init(struct ref_tracker_dir *dir, unsignedint quarantine_count, constchar *class)
{
INIT_LIST_HEAD(&dir->list);
INIT_LIST_HEAD(&dir->quarantine);
spin_lock_init(&dir->lock);
dir->quarantine_avail = quarantine_count;
dir->dead = false;
refcount_set(&dir->untracked, 1);
refcount_set(&dir->no_tracker, 1);
dir->class = class;
ref_tracker_dir_debugfs(dir);
stack_depot_init();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.