Page MenuHomeFreeBSD

linuxkpi: move kobject_create to .c file
ClosedPublic

Authored by imp on Apr 4 2022, 5:03 PM.
Tags
None
Referenced Files
F170627577: D34767.id.diff
Sat, Sep 5, 5:17 PM
F170483328: D34767.id104565.diff
Sat, Sep 5, 1:07 AM
Unknown Object (File)
Fri, Sep 4, 9:15 AM
Unknown Object (File)
Thu, Sep 3, 10:35 AM
Unknown Object (File)
Wed, Sep 2, 4:55 PM
Unknown Object (File)
Wed, Sep 2, 11:10 AM
Unknown Object (File)
Wed, Sep 2, 7:22 AM
Unknown Object (File)
Tue, Sep 1, 10:37 AM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.