---
name: "drm_helper_mode_fill_fb_struct"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_helper_mode_fill_fb_struct"
---

# drm\_helper\_mode\_fill\_fb\_struct(9)

fill out framebuffer metadata

## NAME

drm\_helper\_mode\_fill\_fb\_struct - fill out framebuffer metadata

## SYNOPSIS

**void drm\_helper\_mode\_fill\_fb\_struct(struct drm\_framebuffer \*** *fb***, struct drm\_mode\_fb\_cmd2 \*** *mode\_cmd***);**

## ARGUMENTS

*fb*

drm\_framebuffer object to fill out

*mode\_cmd*

metadata from the userspace fb creation request

## DESCRIPTION

This helper can be used in a drivers fb\_create callback to pre-fill the fb's metadata fields.

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
