Page MenuHomeFreeBSD

LinuxKPI: Implement default sysfs kobject attribute operations
ClosedPublic

Authored by wulf on Dec 6 2021, 9:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 20, 6:27 AM
Unknown Object (File)
Wed, Nov 19, 6:32 PM
Unknown Object (File)
Tue, Nov 4, 3:51 AM
Unknown Object (File)
Oct 28 2025, 1:41 AM
Unknown Object (File)
Oct 27 2025, 7:48 AM
Unknown Object (File)
Oct 27 2025, 2:56 AM
Unknown Object (File)
Oct 27 2025, 2:14 AM
Unknown Object (File)
Oct 26 2025, 2:11 AM

Diff Detail

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

Event Timeline

wulf requested review of this revision.Dec 6 2021, 9:59 AM
sys/compat/linuxkpi/common/include/linux/kobject.h
71

Should this definition be moved to:

sys/compat/linuxkpi/common/include/linux/sysfs.h
sys/compat/linuxkpi/common/include/linux/kobject.h
71
sys/compat/linuxkpi/common/include/linux/kobject.h
71

OK, I think you need to add:

struct sysfs_ops;

At the beginning of this file to avoid issues with standalone inclusion.

sys/compat/linuxkpi/common/include/linux/kobject.h
71

It looks unnecessary. I just placed

extern struct foo bar;

line in to this file and it still compiles

OK, try -Wall just in case.

This revision is now accepted and ready to land.Dec 6 2021, 11:30 AM