Loading...
#ifndef XNU_DARWINTEST_UTILS_H #define XNU_DARWINTEST_UTILS_H #include <stdbool.h> /* Misc. utility functions for writing darwintests. */ bool is_development_kernel(void); /* Launches the given helper variant as a managed process. */ pid_t launch_background_helper( const char* variant, bool start_suspended, bool memorystatus_managed); /* * Set the process's managed bit, so that the memorystatus subsystem treats * this process like an app instead of a sysproc. */ void set_process_memorystatus_managed(pid_t pid); #define XNU_T_META_SOC_SPECIFIC T_META_TAG("SoCSpecific") #endif /* XNU_DARWINTEST_UTILS_H */ |