#include <linux/export.h>
#include <drm/drm_buffer.h>
Go to the source code of this file.
Allocate the drm buffer object.
buf: Pointer to a pointer where the object is stored. size: The number of bytes to allocate.
Definition at line 44 of file drm_buffer.c.
Read an object from buffer that may be split to multiple parts. If object is not split function just returns the pointer to object in buffer. But in case of split object data is copied to given stack object that is suplied by caller.
The processing location of the buffer is also advanced to the next byte after the object.
objsize: The size of the objet in bytes. stack_obj: A pointer to a memory location where object can be copied.
Definition at line 162 of file drm_buffer.c.