-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
posix: options: add xsi realtime option group
Add a POSIX Option Group called XSI_REALTIME (with Kconfig option CONFIG_XSI_REALTIME). When XSI_REALTIME is selected (or when required POSIX Options are enabled), define _XOPEN_REALTIME to be something other than -1 (_XOPEN_VERSION seemed appropriate). Signed-off-by: Chris Friedt <[email protected]>
- Loading branch information
Showing
5 changed files
with
48 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright (c) 2024 Tenstorrent AI ULC | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config XSI_REALTIME | ||
bool "X/Open realtime" | ||
select POSIX_FSYNC | ||
select POSIX_MEMLOCK | ||
select POSIX_MEMLOCK_RANGE | ||
select POSIX_MESSAGE_PASSING | ||
# Not yet implemented, but optional | ||
# imply POSIX_PRIORITIZED_IO | ||
select POSIX_PRIORITY_SCHEDULING | ||
select POSIX_SHARED_MEMORY_OBJECTS | ||
select POSIX_SYNCHRONIZED_IO | ||
help | ||
Select 'y' here and the following functions will be provided: | ||
|
||
fsync(), mlockall(), munlockall(), mlock(), munlock(), mq_close(), mq_getattr(), mq_notify(), | ||
mq_open(), mq_receive(), mq_send(), mq_setattr(), mq_unlink(), sched_get_priority_max(), | ||
sched_get_priority_min(), sched_getparam(), sched_getscheduler(), sched_rr_get_interval(), | ||
sched_setparam(), sched_setscheduler(), sched_yield(), mmap(), munmap(), shm_open(), | ||
shm_unlink() | ||
|
||
The functions fsync(), fdatasync(), and open() will provide synchronized I/O capability. | ||
|
||
For more information, please see | ||
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap02.html |