Page MenuHomeFreeBSD

linuxkpi: Add `split_page()`
Needs ReviewPublic

Authored by dumbbell on Mon, Aug 10, 5:31 PM.
Referenced Files
Unknown Object (File)
Wed, Aug 19, 4:24 PM
Unknown Object (File)
Wed, Aug 19, 4:23 PM
Unknown Object (File)
Wed, Aug 19, 1:54 PM
Unknown Object (File)
Wed, Aug 19, 4:51 AM
Unknown Object (File)
Tue, Aug 18, 8:26 PM
Unknown Object (File)
Tue, Aug 18, 3:03 PM
Unknown Object (File)
Tue, Aug 18, 6:26 AM
Unknown Object (File)
Mon, Aug 17, 4:23 AM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

This function is supposed to split large pages into an array of PAGE_SIZE-sized pages, with correct refcounting. This is apparently used to allow some drivers to free a part of a large page only.

I don't think we use large pages in linuxkpi. Therefore, this new function is curently a no-op.

The DRM drivers TTM memory manager started to use it in Linux 6.15.

Sponsored by: The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

I don't think we use large pages in linuxkpi. Therefore, this new function is curently a no-op.

Is there a way we can add either a compile-time error or KASSERT to ensure this remains the case?

I don't think we use large pages in linuxkpi. Therefore, this new function is curently a no-op.

Is there a way we can add either a compile-time error or KASSERT to ensure this remains the case?

Or at least at the pr_debug("%s:TODO\n", func). I really should make that a macro and replace all occurrences.