1. NAME▲

drm_framebuffer_init - initialize a framebuffer

2. SYNOPSIS ▲

int drm_framebuffer_init(struct drm_device *  dev , struct drm_framebuffer *  fb , const struct drm_framebuffer_funcs *  funcs );

3. ARGUMENTS ▲

dev
    DRM device

fb
    framebuffer to be initialized

funcs
    ... with these functions

4. DESCRIPTION ▲

Allocates an ID for the framebufferAqs parent mode object, sets its mode functions & device file and adds it to the master fd list.

5. IMPORTANT ▲

This functions publishes the fb and makes it available for concurrent access by other users. Which means by this point the fb _must_ be fully set up - since all the fb attributes are invariant over its lifetime, no further locking but only correct reference counting is required.

6. RETURNS ▲

Zero on success, error code on failure.

7. AUTHORS ▲

Jesse Barnes <>
Intel Corporation,
    Initial version

Laurent Pinchart <>
Ideas on board SPRL,
    Driver internals

8. COPYRIGHT ▲