A driver can register a shrinker that will be called when the kernel
wants to free some memory.
Add support for that in linuxkpi and call the registered shrinkers
when the lowmem event is triggered.
Details
Details
- Reviewers
bz - Group Reviewers
linuxkpi - Commits
- rG2c95fb753fb2: linuxkpi: Add shrinker support
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
sys/compat/linuxkpi/common/src/linux_shrinker.c | ||
---|---|---|
48 | I always wonder if we should document that fields are initialised by at least adding KASSERT()s? | |
71 | batch is not needed until line 79; can it be initialised after the initial return? | |
78 | No { } needed. | |
108 | Long line. |