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)
Mon, Nov 4, 2:10 AM
Unknown Object (File)
Sep 30 2024, 6:36 PM
Unknown Object (File)
Sep 28 2024, 3:25 PM
Unknown Object (File)
Sep 28 2024, 12:11 PM
Unknown Object (File)
Sep 28 2024, 2:53 AM
Unknown Object (File)
Sep 25 2024, 7:17 AM
Unknown Object (File)
Sep 24 2024, 11:17 PM
Unknown Object (File)
Sep 24 2024, 11:27 AM
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