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
Unknown Object (File)
Fri, Aug 14, 1:23 AM
Unknown Object (File)
Thu, Aug 13, 2:37 AM
Unknown Object (File)
Wed, Aug 12, 7:49 PM
Unknown Object (File)
Wed, Aug 12, 6:19 PM
Unknown Object (File)
Mon, Aug 10, 2:00 PM
Unknown Object (File)
Mon, Aug 10, 10:14 AM
Unknown Object (File)
Sun, Aug 9, 8:35 PM
Unknown Object (File)
Sun, Aug 9, 5:28 AM
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.