Page MenuHomeFreeBSD

Keep Linux Compatible SYSFS the same as Ubuntu
ClosedPublic

Authored by vico.chern_qq.com on Mar 3 2023, 10:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 6, 1:49 PM
Unknown Object (File)
Feb 20 2024, 1:41 AM
Unknown Object (File)
Dec 23 2023, 12:26 PM
Unknown Object (File)
Oct 27 2023, 1:45 PM
Unknown Object (File)
Sep 17 2023, 7:43 PM
Unknown Object (File)
Sep 15 2023, 3:19 AM
Unknown Object (File)
Jul 2 2023, 2:13 PM
Unknown Object (File)
Jul 2 2023, 2:13 PM
Subscribers

Details

Summary

By checking Ubuntu, there is no ‘/sys/subsystem’ in sysfs. To compatible with Ubuntu, delete the 'subsystem' creation in Linux compatible module.

On the other hand, the sysfs ‘/sys/subsystem’ cause failure for some Linux udev cases.
In Linux udev source code, there is a function named ‘scan_devices_all’, and it will scan ‘/sys/subsystem’ if it is existed, but now there are nothing in /sys/subsystem ‘, and it returns empty to cause some use cases failed.

To compatible with Linux Applications, suggest to remove 'subsystem' to match Ubuntu behavior.

Diff Detail

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