Page MenuHomeFreeBSD

LinuxKPI: Add linux/nodemask.h
ClosedPublic

Authored by wulf on Jun 16 2024, 8:28 PM.
Tags
None
Referenced Files
F110344511: D45613.id140107.diff
Mon, Feb 17, 3:06 AM
Unknown Object (File)
Sat, Feb 8, 9:42 PM
Unknown Object (File)
Sat, Feb 1, 2:38 PM
Unknown Object (File)
Sat, Jan 25, 2:17 PM
Unknown Object (File)
Jan 17 2025, 11:01 PM
Unknown Object (File)
Jan 10 2025, 8:10 PM
Unknown Object (File)
Dec 26 2024, 5:38 PM
Unknown Object (File)
Dec 17 2024, 5:05 PM
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 Not Applicable
Unit
Tests Not Applicable

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
36

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
32

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
36

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

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

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
36

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

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

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.