Re: [PATCH v2 01/16] chardev: add helper function to register char devs with a struct device

Started by Logan Gunthorpe on Feb 28, 2017

open the first message on its own page

Message details and related content

On 27/02/17 09:56 AM, Jason Gunthorpe wrote:
Yes please, that is way too subtle. Suggest:

NOTE: Callers must assume that userspace was able to open the cdev and
can call cdev fops callbacks at any time, even if this function fails.

I would also add a note to cdev_device_del:

NOTE: This guarantees that associated sysfs callbacks are not running
or runnable, however any open cdevs will remain and their fops remain
callable even after this returns.

Since I have seen a lot of confusion on that point as well..
Sure, I'll add that verbiage to a v3 sometime after rc1.

Logan
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help