Commit 3840939
Add PR_SET_MEMORY_MERGE and PR_GET_MEMORY_MERGE for linux
Add `PR_SET_MEMORY_MERGE` and `PR_GET_MEMORY_MERGE` prctl constants for the linux target. These control [per-process opt-in to KSM](https://lwn.net/Articles/953141/) and have been available since kernel 6.4. They were already defined for the android target but missing from linux
(cherry picked from commit 545663c)1 parent f697deb commit 3840939
3 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4422 | 4422 | | |
4423 | 4423 | | |
4424 | 4424 | | |
| 4425 | + | |
| 4426 | + | |
4425 | 4427 | | |
4426 | 4428 | | |
4427 | 4429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2404 | 2404 | | |
2405 | 2405 | | |
2406 | 2406 | | |
| 2407 | + | |
2407 | 2408 | | |
2408 | 2409 | | |
2409 | 2410 | | |
| |||
2443 | 2444 | | |
2444 | 2445 | | |
2445 | 2446 | | |
| 2447 | + | |
2446 | 2448 | | |
2447 | 2449 | | |
2448 | 2450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1644 | 1644 | | |
1645 | 1645 | | |
1646 | 1646 | | |
| 1647 | + | |
| 1648 | + | |
1647 | 1649 | | |
1648 | 1650 | | |
1649 | 1651 | | |
| |||
0 commit comments