Page MenuHomeFreeBSD

linuxkpi: move kobject_create to .c file
ClosedPublic

Authored by imp on Apr 4 2022, 5:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 14, 8:03 PM
Unknown Object (File)
Wed, Apr 9, 11:58 AM
Unknown Object (File)
Sat, Mar 29, 12:25 PM
Unknown Object (File)
Feb 20 2025, 1:27 AM
Unknown Object (File)
Feb 17 2025, 4:28 AM
Unknown Object (File)
Feb 17 2025, 2:27 AM
Unknown Object (File)
Feb 8 2025, 2:02 AM
Unknown Object (File)
Jan 29 2025, 5:21 PM
Subscribers

Details

Summary

kobject_create knows the size of struct kobject. Move it to
linux_compat.c so this knowledge is confined to the loadable module and
not the clients.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44985
Build 41873: arc lint + arc unit

Event Timeline

imp requested review of this revision.Apr 4 2022, 5:03 PM

I assume there is no performance concern with this.

(a minute later)
It looks like Linux defines this in a .c file, so sounds good.

This revision is now accepted and ready to land.Apr 4 2022, 5:10 PM

I assume there is no performance concern with this.

(a minute later)
It looks like Linux defines this in a .c file, so sounds good.

None of this series of commits are performance critical. They are all startup-only or otherwise rare events as far as I can tell...

This revision was automatically updated to reflect the committed changes.