I wrote driver which creates two device nodes as /dev/dummy1 and /dev/dummy2.
created test.txt and cattest.txt > /dev/dummy1 ,
cat /dev/dummy1 & cat /dev/dummy2
is fine.
I want to redirect same data to file /tmp/copy.txt
How to redirect data form /dev/dummy1 to /tmp/copy.txt from char driver itself.(without command line or user application)
Is there any way to rename the device node from /dev/dummy2 to /tmp/xxxx ?
or create the new device node with /tmp/xxx and copy /dev/dummy2 to /tmp/xxx.
Thanks in advance.