Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12244

Symlink inside sysfs

$
0
0

I trying to adapt 4.9 msm8953 kernel [1] for my phone - Xiaomi Redmi Note 4x. It was originally shipped with kernel 3.18.

Kernel almost done, however one of the last problems is changed sysfs structure [2]:in kernel 3.18 FPC fingerprint device path was /sys/devices/soc/soc:fpc1020, but in 4.9 it is now in /sys/devices/platform/soc/soc:fpc1020. This is a problem for proprietary userland, which is hard to change.

So the goal is to symlink /sys/devices/platform/soc/soc:fpc1020 to /sys/devices/soc/soc:fpc1020.

For what I see there is no public API to directly create nodes inside /sys/devices.

Any advices how to get kobject of /sys/devices and make sysfs symlink here?

[1] https://github.com/nE0sIghT/android_kernel_xiaomi_msm8953
[2] https://github.com/nE0sIghT/android_kernel_xiaomi_msm8953/issues/18


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>