Re: RFC: mcu_tty: Trying to open /dev/ttyUSB0 and lock access from a kernel driver

2017-09-25 Thread Alan Cox
On Mon, 25 Sep 2017 15:01:13 +0200 Ulf Samuelsson wrote: > Trying to open /dev/ttyUSB from a kernel driver (which works), but > locking the > serial port so noone else can access it does not work. > Any advice would be appreciated. File locks are advisory only. For

Re: RFC: mcu_tty: Trying to open /dev/ttyUSB0 and lock access from a kernel driver

2017-09-25 Thread Alan Cox
On Mon, 25 Sep 2017 15:01:13 +0200 Ulf Samuelsson wrote: > Trying to open /dev/ttyUSB from a kernel driver (which works), but > locking the > serial port so noone else can access it does not work. > Any advice would be appreciated. File locks are advisory only. For the rest of it you might

RFC: mcu_tty: Trying to open /dev/ttyUSB0 and lock access from a kernel driver

2017-09-25 Thread Ulf Samuelsson
Trying to open /dev/ttyUSB from a kernel driver (which works), but locking the serial port so noone else can access it does not work. Any advice would be appreciated. BACKGROUND: I have a piece of hardware where I/O functions are implemented in a slave flash microcontroller (A) which controls

RFC: mcu_tty: Trying to open /dev/ttyUSB0 and lock access from a kernel driver

2017-09-25 Thread Ulf Samuelsson
Trying to open /dev/ttyUSB from a kernel driver (which works), but locking the serial port so noone else can access it does not work. Any advice would be appreciated. BACKGROUND: I have a piece of hardware where I/O functions are implemented in a slave flash microcontroller (A) which controls