Skip to content
Commit 2c07a21d authored by Dave Airlie's avatar Dave Airlie
Browse files

drm: add core support for unplugging a device (v2)



Two parts to this, one is simple unplug from sysfs for the device node.

The second adds an unplugged state, if we have device opens, we
just set the unplugged state and return, if we have no device
opens we drop the drm device.

If after a lastclose we discover we are unplugged we then
drop the drm device.

v2: use an atomic for unplugged and wrap it for users,
add checks on open + mmap + ioctl entry points.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent cbc7e221
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment