commit | e357ba835d45a30552d6df57d45b54490a182ea5 | [log] [tgz] |
---|---|---|
author | Christopher Friedt <cfriedt@meta.com> | Sun Jan 14 11:20:22 2024 -0500 |
committer | Chris Friedt <chrisfriedt@gmail.com> | Sun Jan 28 13:01:36 2024 -0500 |
tree | c8f90f290d365c773f3b34edd39f64f6bca3f549 | |
parent | cf14d4f1fd6d3049e3417d82ab18a2c9aa43b370 [diff] |
posix: internal: make priority / policy transforms available Two functions can be used with relative ease to convert between Zephyr and POSIX priorities and policies. Namely, uint32_t zephyr_to_posix_priority(int32_t z_prio, int *policy) int32_t posix_to_zephyr_priority(uint32_t priority, int policy) These are not necessarily public API, but they helped with the POSIX Philosophers Sample, which is in a subsequent commit. Signed-off-by: Christopher Friedt <cfriedt@meta.com>