---
name: "i915_cmd_parser_init_ring"
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/i915_cmd_parser_init_ring"
---

# i915\_cmd\_parser\_init\_ring(9)

set cmd parser related fields for a ringbuffer

## NAME

i915\_cmd\_parser\_init\_ring - set cmd parser related fields for a ringbuffer

## SYNOPSIS

**int i915\_cmd\_parser\_init\_ring(struct intel\_engine\_cs \*** *ring***);**

## ARGUMENTS

*ring*

the ringbuffer to initialize

## DESCRIPTION

Optionally initializes fields related to batch buffer command parsing in the struct intel\_engine\_cs based on whether the platform requires software command parsing.

## RETURN

non-zero if initialization fails

## 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
