File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -937,6 +937,9 @@ PRIO_DARWIN_BG
937937PRIO_DARWIN_NONUI
938938PRIO_DARWIN_PROCESS
939939PRIO_DARWIN_THREAD
940+ PROC_CSM_ALL
941+ PROC_CSM_NOSMT
942+ PROC_CSM_TECS
940943PROC_PIDTASKALLINFO
941944PROC_PIDTASKINFO
942945PROC_PIDTHREADINFO
@@ -1818,6 +1821,10 @@ proc_pidfdinfo
18181821proc_pidfileportinfo
18191822proc_pidpath
18201823proc_regionfilename
1824+ proc_set_no_smt
1825+ proc_setthread_no_smt
1826+ proc_set_csm
1827+ proc_setthread_csm
18211828proc_taskallinfo
18221829proc_taskinfo
18231830proc_threadinfo
Original file line number Diff line number Diff line change @@ -4302,6 +4302,9 @@ pub const PROC_PIDTASKINFO: ::c_int = 4;
43024302pub const PROC_PIDTHREADINFO : :: c_int = 5 ;
43034303pub const PROC_PIDVNODEPATHINFO : :: c_int = 9 ;
43044304pub const PROC_PIDPATHINFO_MAXSIZE : :: c_int = 4096 ;
4305+ pub const PROC_CSM_ALL : :: c_uint = 0x0001 ;
4306+ pub const PROC_CSM_NOSMT : :: c_uint = 0x0002 ;
4307+ pub const PROC_CSM_TECS : :: c_uint = 0x0004 ;
43054308pub const MAXCOMLEN : usize = 16 ;
43064309pub const MAXTHREADNAMESIZE : usize = 64 ;
43074310
@@ -5249,6 +5252,12 @@ extern "C" {
52495252 pub fn proc_kmsgbuf ( buffer : * mut :: c_void , buffersize : u32 ) -> :: c_int ;
52505253 pub fn proc_libversion ( major : * mut :: c_int , mintor : * mut :: c_int ) -> :: c_int ;
52515254 pub fn proc_pid_rusage ( pid : :: c_int , flavor : :: c_int , buffer : * mut rusage_info_t ) -> :: c_int ;
5255+
5256+ // Available from Big Sur
5257+ pub fn proc_set_no_smt ( ) -> :: c_int ;
5258+ pub fn proc_setthread_no_smt ( ) -> :: c_int ;
5259+ pub fn proc_set_csm ( flags : u32 ) -> :: c_int ;
5260+ pub fn proc_setthread_csm ( flags : u32 ) -> :: c_int ;
52525261 /// # Notes
52535262 ///
52545263 /// `id` is of type [`uuid_t`].
You can’t perform that action at this time.
0 commit comments