|
From: Ricardo N. <ric...@gm...> - 2015-10-12 14:46:58
|
Hi. I'm trying to create a 2 way communication channel between a kernel driver in UML with a process at the host. What's the best way to do it? I started by trying to create a pipe ath the host, share in hostfs but I can't get any communication (write on pipe in UML, nothing appears in host). Plus, I'm using os_open_file kind of functions (shared/os.h) but it always return me error -2 (bad file path). I thought that it could be because the kernel module was loaded before the hostfs is mounted but the same error happens if I insmod it after boot. What are the alternatives here? I wanted a low latency type of communication, minimum overhead since it will be a lot of communications os 5-10 bytes each time. Thanks |