Lines Matching refs:mask

66  #define PCNTL_CPUSET(mask) &mask  argument
67 #define PCNTL_CPUSET_SIZE(mask) sizeof(mask) argument
68 #define PCNTL_CPU_ISSET(i, mask) CPU_ISSET(i, &mask) argument
69 #define PCNTL_CPU_SET(i, mask) CPU_SET(i, &mask) argument
70 #define PCNTL_CPU_ZERO(mask) CPU_ZERO(&mask) argument
71 #define PCNTL_CPU_DESTROY(mask) ((void)0) argument
78 #define PCNTL_CPUSET(mask) mask argument
79 #define PCNTL_CPUSET_SIZE(mask) cpuset_size(mask) argument
80 #define PCNTL_CPU_ISSET(i, mask) cpuset_isset((cpuid_t)i, mask) argument
81 #define PCNTL_CPU_SET(i, mask) cpuset_set((cpuid_t)i, mask) argument
82 #define PCNTL_CPU_ZERO(mask) \ argument
84 mask = cpuset_create(); \
85 if (UNEXPECTED(!mask)) { \
89 cpuset_zero(mask); \
91 #define PCNTL_CPU_DESTROY(mask) cpuset_destroy(mask) argument
98 #define PCNTL_CPUSET(mask) mask argument
99 …#define PCNTL_CPU_ISSET(i, mask) (pset_assign(PS_QUERY, (processorid_t)i, &query) == 0 && query ==… argument
100 #define PCNTL_CPU_SET(i, mask) pset_assign(mask, (processorid_t)i, NULL) argument
101 #define PCNTL_CPU_ZERO(mask) \ argument
104 if (UNEXPECTED(pset_create(&mask) != 0)) { \
109 #define PCNTL_CPU_DESTROY(mask) \ argument
111 if (UNEXPECTED(mask != PS_NONE && pset_destroy(mask) != 0)) { \
1321 sigset_t mask; in pcntl_signal_dispatch() local
1329 sigfillset(&mask); in pcntl_signal_dispatch()
1330 sigprocmask(SIG_BLOCK, &mask, &old_mask); in pcntl_signal_dispatch()
1642 cpu_set_t mask; in PHP_FUNCTION() local
1652 PCNTL_CPU_ZERO(mask); in PHP_FUNCTION()
1654 if (sched_getaffinity(pid, PCNTL_CPUSET_SIZE(mask), PCNTL_CPUSET(mask)) != 0) { in PHP_FUNCTION()
1655 PCNTL_CPU_DESTROY(mask); in PHP_FUNCTION()
1678 if (PCNTL_CPU_ISSET(i, mask)) { in PHP_FUNCTION()
1682 PCNTL_CPU_DESTROY(mask); in PHP_FUNCTION()
1689 cpu_set_t mask; in PHP_FUNCTION() local
1707 PCNTL_CPU_ZERO(mask); in PHP_FUNCTION()
1717 PCNTL_CPU_DESTROY(mask); in PHP_FUNCTION()
1726 PCNTL_CPU_DESTROY(mask); in PHP_FUNCTION()
1738 if (!PCNTL_CPU_ISSET(cpu, mask)) { in PHP_FUNCTION()
1739 PCNTL_CPU_SET(cpu, mask); in PHP_FUNCTION()
1743 if (sched_setaffinity(pid, PCNTL_CPUSET_SIZE(mask), PCNTL_CPUSET(mask)) != 0) { in PHP_FUNCTION()
1744 PCNTL_CPU_DESTROY(mask); in PHP_FUNCTION()
1761 PCNTL_CPU_DESTROY(mask); in PHP_FUNCTION()