creating two separate device file streams

Questions and discussions about the Xillybus IP core and drivers

creating two separate device file streams

Postby kevin » Tue Dec 04, 2018 7:02 am

Will using two separate device nodes (O_RDONLY and O_WRONLY) instead of just one device node (O_RDWR) help in improving the bandwidth performance ?

change the use of (/dev/xillybus_read_128 and /dev/xillybus_write_128) to /dev/xillybus_128

I cannot possibly try this out without modifying and recompiling https://github.com/torvalds/linux/blob/master/drivers/char/xillybus/xillybus_core.c#L1861

Would you be able provide your own personal insight into this question ?
kevin
 
Posts: 42
Joined: Tue Dec 12, 2017 10:41 am

Re: creating two separate device file streams

Postby support » Tue Dec 04, 2018 8:14 am

Hello,

The organization of device files into read-only, write-only or bidirectional has no impact on performance or otherwise. Under the hood, each direction has an independent transport mechanism, this way or another.

Regards,
Eli
support
 
Posts: 627
Joined: Tue Apr 24, 2012 3:46 pm


Return to Xillybus

cron