Page MenuHomeFreeBSD

LinuxKPI: Add tgid to task_struct under sched.h
Needs ReviewPublic

Authored by siri_racha.ca on Jul 14 2026, 5:27 PM.
Referenced Files
F168856050: D58228.id184004.diff
Sun, Aug 30, 11:39 AM
F168846384: D58228.id181983.diff
Sun, Aug 30, 10:34 AM
F168833464: D58228.diff
Sun, Aug 30, 9:07 AM
F168792603: D58228.id184004.diff
Sun, Aug 30, 4:33 AM
F168707739: D58228.id.diff
Sat, Aug 29, 6:06 PM
F168683560: D58228.diff
Sat, Aug 29, 2:57 PM
Unknown Object (File)
Thu, Aug 27, 10:09 PM
Unknown Object (File)
Thu, Aug 27, 9:39 PM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

This is required by amdkfd kfd_process.c. This patch just introduces pid_t tgid to the task_struct struct in sched.h

Sponsored By: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

What's the KBI impact of this? Does it need a __FreeBSD_version bump then? Would it make sense to add it to the end?

In D58228#1349195, @bz wrote:

What's the KBI impact of this? Does it need a __FreeBSD_version bump then? Would it make sense to add it to the end?

It does break KBI... I did not consider that. I've made a revision to gaurd via __FreeBSD_version, though it bumps from 19->21 since someone bumped to 20 last night.