search for: intr_rwsem_up_write

Displaying 1 result from an estimated 1 matches for "intr_rwsem_up_write".

2012 Apr 25
5
[PATCH v2 4/4] drm/nouveau: gpu lockup recovery
...x); + if (ret) + return ret; + mutex_unlock(&r->mutex); + } + return 0; +} + +void intr_rwsem_up_read(struct intr_rwsem *r) +{ + up_read(&r->rwsem); +} + +void intr_rwsem_down_write(struct intr_rwsem *r) +{ + mutex_lock(&r->mutex); + down_write(&r->rwsem); +} + +void intr_rwsem_up_write(struct intr_rwsem *r) +{ + up_write(&r->rwsem); + mutex_unlock(&r->mutex); +} + +static long nouveau_ioctl(struct file *filp, + unsigned int cmd, unsigned long arg) +{ + struct drm_file *file_priv = filp->private_data; + struct drm_device *dev = file_priv->minor->dev; +...