---
name: "i915_parse_cmds"
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_parse_cmds"
---

# i915\_parse\_cmds(9)

parse a submitted batch buffer for privilege violations

## NAME

i915\_parse\_cmds - parse a submitted batch buffer for privilege violations

## SYNOPSIS

**int i915\_parse\_cmds(struct intel\_engine\_cs \*** *ring***, struct drm\_i915\_gem\_object \*** *batch\_obj***, u32** *batch\_start\_offset***, bool** *is\_master***);**

## ARGUMENTS

*ring*

the ring on which the batch is to execute

*batch\_obj*

the batch buffer in question

*batch\_start\_offset*

byte offset in the batch at which execution starts

*is\_master*

is the submitting process the drm master?

## DESCRIPTION

Parses the specified batch buffer looking for privilege violations as described in the overview.

## RETURN

non-zero if the parser finds violations or otherwise 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
