Page MenuHomeFreeBSD

LinuxKPI: Add linux/nodemask.h
ClosedPublic

Authored by wulf on Jun 16 2024, 8:28 PM.
Tags
None
Referenced Files
F139431943: D45613.diff
Fri, Dec 12, 12:51 AM
Unknown Object (File)
Sun, Dec 7, 1:21 PM
Unknown Object (File)
Sat, Dec 6, 10:34 PM
Unknown Object (File)
Wed, Nov 26, 5:36 AM
Unknown Object (File)
Tue, Nov 18, 10:33 PM
Unknown Object (File)
Oct 21 2025, 8:32 PM
Unknown Object (File)
Oct 20 2025, 8:38 AM
Unknown Object (File)
Oct 20 2025, 12:43 AM
Subscribers

Details

Summary

and dummy num_possible_nodes() implementation. We do not support NUMA
in LinuxKPI yet.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58197
Build 55085: arc lint + arc unit

Event Timeline

wulf requested review of this revision.Jun 16 2024, 8:28 PM
This revision is now accepted and ready to land.Jun 17 2024, 5:33 AM
bz requested changes to this revision.Jun 17 2024, 9:34 AM
bz added inline comments.
sys/compat/linuxkpi/common/include/linux/nodemask.h
35

Can you leave a pr_debug() call here (instead of the comment); that way it can become visible.

This revision now requires changes to proceed.Jun 17 2024, 9:34 AM
sys/compat/linuxkpi/common/include/linux/nodemask.h
31

Also not entirely true; see compat/common/src/linux_domain.c There is one instance where we do seem to return the domain.

sys/compat/linuxkpi/common/include/linux/nodemask.h
35

Depending on when this function is used in DRM this could be annoying as hell.

sys/compat/linuxkpi/common/include/linux/nodemask.h
35

Depending on when this function is used in DRM this could be annoying as hell.

pr_debug is behind a sysctl and off by default and off unless we have a kernel compiled with options DEBUG (to my memory).

sys/compat/linuxkpi/common/include/linux/nodemask.h
35

Indeed, I've missed the sysctl, I'm good for using it then.

sys/compat/linuxkpi/common/include/linux/nodemask.h
35

I left a comment on the GitHub that we should have a consistent way to tag TODO items in the Linuxulator; I was thinking of something like a LKPITODO comment but it seems that pr_debug("%s: TODO\n", __func__); is indeed the typical incantation.

Add pr_debug warning. Requires D45692 to be buildable.

This revision is now accepted and ready to land.Jun 22 2024, 5:37 PM
This revision was automatically updated to reflect the committed changes.