2023-11-16 19:47:35 -05:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
/*
|
|
|
|
* Copyright 2023 Red Hat
|
|
|
|
*/
|
|
|
|
|
2024-02-09 14:53:05 -06:00
|
|
|
#ifndef VDO_THREAD_DEVICE_H
|
|
|
|
#define VDO_THREAD_DEVICE_H
|
2023-11-16 19:47:35 -05:00
|
|
|
|
|
|
|
#include "thread-registry.h"
|
|
|
|
|
2024-02-09 14:53:05 -06:00
|
|
|
void vdo_register_thread_device_id(struct registered_thread *new_thread,
|
2023-11-16 19:47:35 -05:00
|
|
|
unsigned int *id_ptr);
|
|
|
|
|
2024-02-09 14:53:05 -06:00
|
|
|
void vdo_unregister_thread_device_id(void);
|
2023-11-16 19:47:35 -05:00
|
|
|
|
2024-02-09 14:53:05 -06:00
|
|
|
int vdo_get_thread_device_id(void);
|
2023-11-16 19:47:35 -05:00
|
|
|
|
2024-02-09 14:53:05 -06:00
|
|
|
void vdo_initialize_thread_device_registry(void);
|
2023-11-16 19:47:35 -05:00
|
|
|
|
2024-02-09 14:53:05 -06:00
|
|
|
#endif /* VDO_THREAD_DEVICE_H */
|