User: Password:
|
|
Subscribe / Log in / New account

Locking & the videobuf2 API

Locking & the videobuf2 API

Posted Jun 16, 2011 16:03 UTC (Thu) by corbet (editor, #1)
In reply to: Locking & the videobuf2 API by hverkuil
Parent article: The videobuf2 API

As you know, some of us are not entirely in agreement there. I don't think you can do a complex driver without being aware of locking; trying to hide it looks to me like an attempt to return to the good old days of uniprocessor systems. I don't know of any other kernel subsystem which tries to hide locking in the midlayers in this way - though there almost certainly is one somewhere.


(Log in to post comments)

Locking & the videobuf2 API

Posted Jun 16, 2011 16:28 UTC (Thu) by hverkuil (subscriber, #41056) [Link]

I know. We don't hide it, BTW, you have to explicitly set it up. The simple fact is that the vast majority of V4L2 drivers need to serialize ioctl calls anyway. This is usually implemented pretty badly.

Another reason for doing this was the BKL removal were we needed something reasonably simple to convert old (usually unmaintained) drivers without having to do extensive code reviews.

Locking & the videobuf2 API

Posted Jun 16, 2011 16:34 UTC (Thu) by corbet (editor, #1) [Link]

Understood, that all makes sense, sorry if I sounded critical. You've put in a lot of work and, as a result, V4L2 has gotten a lot better in the time I've been paying attention to it.


Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds