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)
Wed, Sep 24, 7:46 PM
Unknown Object (File)
Wed, Sep 24, 10:10 AM
Unknown Object (File)
Sep 4 2025, 2:54 AM
Unknown Object (File)
Aug 31 2025, 1:54 AM
Unknown Object (File)
Aug 30 2025, 12:44 AM
Unknown Object (File)
Aug 28 2025, 4:28 AM
Unknown Object (File)
Aug 12 2025, 8:32 PM
Unknown Object (File)
Jul 7 2025, 5:14 PM

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