// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2023 Red Hat */ #include "thread-registry.h" #include <asm/current.h> #include <linux/rculist.h> #include "permassert.h" /* * We need to be careful when using other facilities that may use thread registry functions in * their normal operation. For example, we do not want to invoke the logger while holding a lock. */ void vdo_initialize_thread_registry(struct thread_registry *registry) { … } /* Register the current thread and associate it with a data pointer. */ void vdo_register_thread(struct thread_registry *registry, struct registered_thread *new_thread, const void *pointer) { … } void vdo_unregister_thread(struct thread_registry *registry) { … } const void *vdo_lookup_thread(struct thread_registry *registry) { … }