martinpitt / umockdev

Mock hardware devices for creating unit tests and bug reporting
https://launchpad.net/umockdev
GNU Lesser General Public License v2.1
308 stars 54 forks source link

(Question) Redox OS support #248

Closed hardBSDk closed 2 months ago

hardBSDk commented 2 months ago

Your project is amazing!!

Do you know if it's technically possible to implement something similar on Redox OS ?

Probably your project is Linux-specific, but can you give me the steps to replicate this on Redox OS?

martinpitt commented 2 months ago

I'm afraid I have absolutely no idea about RedoxOS -- /proc and /dev are still somewhat covered by POSIX, but /sys is Linux specific I'm afraid. I can't give you detailled steps, other than: learn how Redox OS manages hardware devices (the moral equivalents of /sys, udev, and kernel uevents), how applications use them (API for enumeration and changes), and how to write a preload library to simulate all of that.

Perhaps RedoxOS uses the same APIs as Linux, then there's a chance that umockdev will actually work. But otherwise this is an entirely new project.

hardBSDk commented 2 months ago

@martinpitt Thanks a lot for your answer!