Page MenuHomeFreeBSD

sched_unpin(): assert that curthread was pinned
ClosedPublic

Authored by kib on Jun 25 2024, 8:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 29, 7:23 PM
Unknown Object (File)
Sat, Oct 19, 1:18 AM
Unknown Object (File)
Oct 2 2024, 8:00 PM
Unknown Object (File)
Sep 22 2024, 8:59 PM
Unknown Object (File)
Sep 21 2024, 5:17 AM
Unknown Object (File)
Sep 18 2024, 10:37 AM
Unknown Object (File)
Sep 17 2024, 3:24 PM
Unknown Object (File)
Sep 9 2024, 2:53 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

While here, it would be nice to include sys/kassert.h.

This revision is now accepted and ready to land.Jun 25 2024, 8:21 PM

While here, it would be nice to include sys/kassert.h.

The file does not include sys/proc.h, which is vital for inline functions. sys/proc.h itself includes sys/systm.h, which includes sys/kassert.h. I am not sure that including kassert.h is useful.

olce added a subscriber: olce.

As @markj said, while here, please include sys/assert.h explicitly. It is already due because of sched_userret() above.

In D45736#1043169, @kib wrote:

While here, it would be nice to include sys/kassert.h.

The file does not include sys/proc.h, which is vital for inline functions. sys/proc.h itself includes sys/systm.h, which includes sys/kassert.h. I am not sure that including kassert.h is useful.

IMO the header should include proc.h (when _KERNEL is defined) then, but yes, it's probably not too productive to include kassert.h by itself.

This revision was automatically updated to reflect the committed changes.