Linux Kernel
3.7.1
|
Go to the source code of this file.
Functions | |
DEFINE_MUTEX (drm_global_mutex) | |
EXPORT_SYMBOL (drm_global_mutex) | |
int | drm_open (struct inode *inode, struct file *filp) |
EXPORT_SYMBOL (drm_open) | |
int | drm_stub_open (struct inode *inode, struct file *filp) |
int | drm_fasync (int fd, struct file *filp, int on) |
EXPORT_SYMBOL (drm_fasync) | |
int | drm_release (struct inode *inode, struct file *filp) |
EXPORT_SYMBOL (drm_release) | |
ssize_t | drm_read (struct file *filp, char __user *buffer, size_t count, loff_t *offset) |
EXPORT_SYMBOL (drm_read) | |
unsigned int | drm_poll (struct file *filp, struct poll_table_struct *wait) |
EXPORT_SYMBOL (drm_poll) | |
File operations for DRM
Definition in file drm_fops.c.
DEFINE_MUTEX | ( | drm_global_mutex | ) |
No-op.
Definition at line 374 of file drm_fops.c.
Open file.
inode | device inode |
filp | file pointer. |
Searches the DRM device with the same minor number, calls open_helper(), and increments the device open count. If the open count was previous at zero, i.e., it's the first that the device is open, then calls setup().
Definition at line 118 of file drm_fops.c.
unsigned int drm_poll | ( | struct file * | filp, |
struct poll_table_struct * | wait | ||
) |
Definition at line 625 of file drm_fops.c.
Definition at line 596 of file drm_fops.c.
Release file.
inode | device inode |
file_priv | DRM file private. |
If the hardware lock is held then free it, and take it again for the kernel context since it's necessary to reclaim buffers. Unlink the file private data from its list and free it. Decreases the open count and if it reaches zero calls drm_lastclose().
Since the master is disappearing, so is the possibility to lock.
Definition at line 433 of file drm_fops.c.
EXPORT_SYMBOL | ( | drm_global_mutex | ) |
EXPORT_SYMBOL | ( | drm_open | ) |
EXPORT_SYMBOL | ( | drm_fasync | ) |
EXPORT_SYMBOL | ( | drm_release | ) |
EXPORT_SYMBOL | ( | drm_read | ) |
EXPORT_SYMBOL | ( | drm_poll | ) |