Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
drm_proc.c File Reference
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <drm/drmP.h>

Go to the source code of this file.


#define DRM_PROC_ENTRIES   ARRAY_SIZE(drm_proc_list)


int drm_proc_init (struct drm_minor *minor, int minor_id, struct proc_dir_entry *root)
int drm_proc_cleanup (struct drm_minor *minor, struct proc_dir_entry *root)

Detailed Description

/proc support for DRM

Rickard E. (Rik) Faith
Gareth Hughes
Matthew J Sottek sent in a patch to fix the problem with the proc files not outputting all their information.

Definition in file drm_proc.c.

Macro Definition Documentation

#define DRM_PROC_ENTRIES   ARRAY_SIZE(drm_proc_list)

Definition at line 62 of file drm_proc.c.

Function Documentation

int drm_proc_cleanup ( struct drm_minor *  minor,
struct proc_dir_entry root 

Cleanup the proc filesystem resources.

minordevice minor number.
rootDRI proc dir entry.
dev_rootDRI device proc dir entry.
always zero.

Remove all proc entries created by proc_init().

Definition at line 206 of file drm_proc.c.

int drm_proc_init ( struct drm_minor *  minor,
int  minor_id,
struct proc_dir_entry root 

Initialize the DRI proc filesystem for a device

devDRM device
minordevice minor number
rootDRI proc dir entry.
dev_rootresulting DRI device proc dir entry.
root entry pointer on success, or NULL on failure.

Create the DRI proc root entry "/proc/dri", the device proc root entry "/proc/dri/%minor%/", and each entry in proc_list as "/proc/dri/%minor%/%name%".

Definition at line 149 of file drm_proc.c.