| ... | @@ -2548,28 +2548,3 @@ pub extern "c" fn mincore( | ... | @@ -2548,28 +2548,3 @@ pub extern "c" fn mincore( |
| 2548 | length: usize, | 2548 | length: usize, |
| 2549 | vec: [*]u8, | 2549 | vec: [*]u8, |
| 2550 | ) c_int; | 2550 | ) c_int; |
| 2551 | | | |
| 2552 | pub const MAXMEMDOM = 8; | | |
| 2553 | pub const domainid_t = u8; | | |
| 2554 | | | |
| 2555 | pub const LIST_ENTRY = opaque {}; | | |
| 2556 | | | |
| 2557 | pub const DOMAINSET = struct { | | |
| 2558 | pub const POLICY_INVALID = 0; | | |
| 2559 | pub const POLICY_ROUNDROBIN = 1; | | |
| 2560 | pub const POLICY_FIRSTOUCH = 2; | | |
| 2561 | pub const POLICY_PREFER = 3; | | |
| 2562 | pub const POLICY_INTERLEAVE = 4; | | |
| 2563 | pub const POLICY_MAX = DOMAINSET.POLICY_INTERLEAVE; | | |
| 2564 | }; | | |
| 2565 | | | |
| 2566 | pub const domainset_t = extern struct { | | |
| 2567 | link: LIST_ENTRY, | | |
| 2568 | policy: u16, | | |
| 2569 | prefer: domainid_t, | | |
| 2570 | cnt: domainid_t, | | |
| 2571 | order: [MAXMEMDOM]domainid_t, | | |
| 2572 | }; | | |
| 2573 | | | |
| 2574 | pub extern "c" fn cpuset_getdomain(level: cpulevel_t, which: cpuwhich_t, id: id_t, len: usize, domain: *domainset_t, r: *c_int) c_int; | | |
| 2575 | pub extern "c" fn cpuset_setdomain(level: cpulevel_t, which: cpuwhich_t, id: id_t, len: usize, domain: *const domainset_t, r: c_int) c_int; | | |