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
F107188219: D38885.id119443.diff
Sat, Jan 11, 9:47 AM
F107178811: D38885.diff
Sat, Jan 11, 7:48 AM
F107177068: D38885.diff
Sat, Jan 11, 7:08 AM
Unknown Object (File)
Mon, Jan 6, 7:01 AM
Unknown Object (File)
Nov 18 2024, 3:59 PM
Unknown Object (File)
Nov 18 2024, 3:53 PM
Unknown Object (File)
Nov 4 2024, 2:10 AM
Unknown Object (File)
Sep 30 2024, 6:36 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