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.

Macros

#define DRM_PROC_ENTRIES   ARRAY_SIZE(drm_proc_list)
 

Functions

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

Author
Rickard E. (Rik) Faith faith.nosp@m.@val.nosp@m.inux..nosp@m.com
Gareth Hughes garet.nosp@m.h@va.nosp@m.linux.nosp@m..com
Acknowledgements:
Matthew J Sottek matth.nosp@m.ew.j.nosp@m..sott.nosp@m.ek@i.nosp@m.ntel..nosp@m.com 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.

Parameters
minordevice minor number.
rootDRI proc dir entry.
dev_rootDRI device proc dir entry.
Returns
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

Parameters
devDRM device
minordevice minor number
rootDRI proc dir entry.
dev_rootresulting DRI device proc dir entry.
Returns
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.