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)
Mon, May 25, 10:54 AM
Unknown Object (File)
Mon, May 25, 8:14 AM
Unknown Object (File)
Sun, May 24, 8:13 PM
Unknown Object (File)
Thu, May 21, 8:35 AM
Unknown Object (File)
Sun, May 17, 3:04 PM
Unknown Object (File)
May 15 2026, 9:10 PM
Unknown Object (File)
May 15 2026, 9:09 PM
Unknown Object (File)
May 15 2026, 9:02 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