On Sun 2018-03-04 22:45:35, Ильяс Гасанов wrote: > 2018-03-04 22:19 GMT+03:00 Pavel Machek <pavel@xxxxxx>: > > Improving WDIOC_SETTIMEOUT is obvious solution. I'd go for that. > > Question is, then, - how to do it in a backwards-compatible manner? > There is very likely to be some userspace software out there which > relies on the assumption of the currently used whole seconds semantics > being in effect. > > Add a new millisecond argument? But how to detect its presence in the handler? > > Introduce a new ioctl? But how to do it neatly and reasonably? New ioctl. Start from the old one. Keep it neat :-). Negotiate with wd maintainers if that's ok with them, first. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Attachment:
signature.asc
Description: Digital signature