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
937
937
PRIO_DARWIN_NONUI
938
938
PRIO_DARWIN_PROCESS
939
939
PRIO_DARWIN_THREAD
940
+ PROC_CSM_ALL
941
+ PROC_CSM_NOSMT
942
+ PROC_CSM_TECS
940
943
PROC_PIDTASKALLINFO
941
944
PROC_PIDTASKINFO
942
945
PROC_PIDTHREADINFO
@@ -1818,6 +1821,10 @@ proc_pidfdinfo
1818
1821
proc_pidfileportinfo
1819
1822
proc_pidpath
1820
1823
proc_regionfilename
1824
+ proc_set_no_smt
1825
+ proc_setthread_no_smt
1826
+ proc_set_csm
1827
+ proc_setthread_csm
1821
1828
proc_taskallinfo
1822
1829
proc_taskinfo
1823
1830
proc_threadinfo
Original file line number Diff line number Diff line change @@ -4302,6 +4302,9 @@ pub const PROC_PIDTASKINFO: ::c_int = 4;
4302
4302
pub const PROC_PIDTHREADINFO : :: c_int = 5 ;
4303
4303
pub const PROC_PIDVNODEPATHINFO : :: c_int = 9 ;
4304
4304
pub 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 ;
4305
4308
pub const MAXCOMLEN : usize = 16 ;
4306
4309
pub const MAXTHREADNAMESIZE : usize = 64 ;
4307
4310
@@ -5249,6 +5252,12 @@ extern "C" {
5249
5252
pub fn proc_kmsgbuf ( buffer : * mut :: c_void , buffersize : u32 ) -> :: c_int ;
5250
5253
pub fn proc_libversion ( major : * mut :: c_int , mintor : * mut :: c_int ) -> :: c_int ;
5251
5254
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 ;
5252
5261
/// # Notes
5253
5262
///
5254
5263
/// `id` is of type [`uuid_t`].
You can’t perform that action at this time.
0 commit comments