Re: [PATCH v4 4/4] tty: implement led triggers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 14, 2018 at 09:50:20PM +0200, Jacek Anaszewski wrote:

> There is no ready solution for tty, but it can be implemented with
> not so big effort. I don't know what exactly Pavel had on mind,
> but I myself see now, that the better approach would be a new
> ledtrig-ttydev driver, that would expose three sysfs files: tty_id,
> rx, tx. It would also expose the API like e.g.:
> 
> ttydev_trig_notify(int tty_id, bool rx)

There is no unique integer tty_id; consider ttyS0 and ttyUSB0 for
example. So this would not work as it stands.

Johan



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux