Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
fbsysfs.c File Reference
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/fb.h>
#include <linux/console.h>
#include <linux/module.h>

Go to the source code of this file.

Macros

#define FB_SYSFS_FLAG_ATTR   1
 
#define BYTES_PER_LONG   (BITS_PER_LONG/8)
 
#define PADDING   (BYTES_PER_LONG - (sizeof(struct fb_info) % BYTES_PER_LONG))
 

Functions

struct fb_infoframebuffer_alloc (size_t size, struct device *dev)
 
 EXPORT_SYMBOL (framebuffer_alloc)
 
void framebuffer_release (struct fb_info *info)
 
 EXPORT_SYMBOL (framebuffer_release)
 
int fb_init_device (struct fb_info *fb_info)
 
void fb_cleanup_device (struct fb_info *fb_info)
 

Macro Definition Documentation

#define BYTES_PER_LONG   (BITS_PER_LONG/8)
#define FB_SYSFS_FLAG_ATTR   1

Definition at line 24 of file fbsysfs.c.

#define PADDING   (BYTES_PER_LONG - (sizeof(struct fb_info) % BYTES_PER_LONG))

Function Documentation

EXPORT_SYMBOL ( framebuffer_alloc  )
EXPORT_SYMBOL ( framebuffer_release  )
void fb_cleanup_device ( struct fb_info fb_info)

Definition at line 539 of file fbsysfs.c.

int fb_init_device ( struct fb_info fb_info)

Definition at line 515 of file fbsysfs.c.

struct fb_info* framebuffer_alloc ( size_t  size,
struct device dev 
)
read

framebuffer_alloc - creates a new frame buffer info structure

: size of driver private data, can be zero : pointer to the device for this fb, this can be NULL

Creates a new frame buffer info structure. Also reserves bytes for driver private data (info->par). info->par (if any) will be aligned to sizeof(long).

Returns the new structure, or NULL if an error occurred.

Definition at line 39 of file fbsysfs.c.

void framebuffer_release ( struct fb_info info)

framebuffer_release - marks the structure available for freeing

: frame buffer info structure

Drop the reference count of the device embedded in the framebuffer info structure.

Definition at line 81 of file fbsysfs.c.