| 1 | /* |
| 2 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | */ |
| 4 | |
| 5 | #pragma once |
| 6 | |
| 7 | #include <stdint.h> |
| 8 | #include <sys/types.h> |
| 9 | |
| 10 | #include <glib.h> |
| 11 | #include <gmodule.h> |
| 12 | |
| 13 | G_BEGIN_DECLS |
| 14 | |
| 15 | G_MODULE_EXPORT |
| 16 | void gsm_setaffinity (pid_t pid, |
| 17 | size_t n_cpus, |
| 18 | uint16_t cpus[], |
| 19 | gboolean apply_to_threads, |
| 20 | GError **error); |
| 21 | |
| 22 | G_END_DECLS |