Rust-for-Linux / linux

Adding support for the Rust language to the Linux kernel.
https://rust-for-linux.com
Other
3.84k stars 399 forks source link

`tty0tty`, null modem emulator kernel module #62

Open stappersg opened 3 years ago

stappersg commented 3 years ago

Hi,

This is a catogorie wish issue. The goal is to have an in rust written kernel module that doesn't need (special) hardware in the mainline kernel. Have a rust kernel module that works for every one. If I recall correct, did @joshtriplett recommend to write virtio modules in rust, this issue is about is virtual I/O.

https://github.com/freemed/tty0tty is kernel module that doesn't need (special) hardware.

tty0tty is a null modem emulator. In fact an emulator of pairs of serial ports having connected on ends Transmit line to others end Receive line and vice versa. This is great for testing user applications that use a serial interface ( /dev/ttyS0, /dev/ttyACM0, /dev/ttyUSB0 ) With tty0tty you tell the to be tested applications to use /dev/tnt0 and /dev/tnt1.

tty0tty was not included in mainline linux, I do hope the rust implementation will. I haven't done an implementation attempt since I had the idea back several months ago and unlikely I will bite the bullet on this in the next few months. So feel free to make my wish come true.

ojeda commented 3 years ago

I am not sure if someone will try to implement this particular module, but it sounds like a reasonable candidate for a first Rust module (you are welcome to implement it if you have the time, of course!).

AltF02 commented 2 years ago

I'm gonna see if I can try to implement this, but I doubt I will succeed. But always worth a try

lwz23 commented 1 month ago

Hello, is there any progress on this issue? Is there first Rust module in the project now?