drm_file.h (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) drm_file.h (6d179f84f274a87da51f24ac3e9427221bbaed51)
1/*
2 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
3 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
4 * Copyright (c) 2009-2010, Code Aurora Forum.
5 * All rights reserved.
6 *
7 * Author: Rickard E. (Rik) Faith <faith@valinux.com>
8 * Author: Gareth Hughes <gareth@valinux.com>

--- 394 unchanged lines hidden (view full) ---

403
404/**
405 * drm_is_accel_client - is this an open file of the compute acceleration node
406 * @file_priv: DRM file
407 *
408 * Returns true if this is an open file of the compute acceleration node, i.e.
409 * &drm_file.minor of @file_priv is a accel minor.
410 *
1/*
2 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
3 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
4 * Copyright (c) 2009-2010, Code Aurora Forum.
5 * All rights reserved.
6 *
7 * Author: Rickard E. (Rik) Faith <faith@valinux.com>
8 * Author: Gareth Hughes <gareth@valinux.com>

--- 394 unchanged lines hidden (view full) ---

403
404/**
405 * drm_is_accel_client - is this an open file of the compute acceleration node
406 * @file_priv: DRM file
407 *
408 * Returns true if this is an open file of the compute acceleration node, i.e.
409 * &drm_file.minor of @file_priv is a accel minor.
410 *
411 * See also the :ref:`section on accel nodes <drm_accel_node>`.
411 * See also :doc:`Introduction to compute accelerators subsystem
412 * </accel/introduction>`.
412 */
413static inline bool drm_is_accel_client(const struct drm_file *file_priv)
414{
415 return file_priv->minor->type == DRM_MINOR_ACCEL;
416}
417
418int drm_open(struct inode *inode, struct file *filp);
419int drm_open_helper(struct file *filp, struct drm_minor *minor);

--- 24 unchanged lines hidden ---
413 */
414static inline bool drm_is_accel_client(const struct drm_file *file_priv)
415{
416 return file_priv->minor->type == DRM_MINOR_ACCEL;
417}
418
419int drm_open(struct inode *inode, struct file *filp);
420int drm_open_helper(struct file *filp, struct drm_minor *minor);

--- 24 unchanged lines hidden ---