leds: wm831x-status: fix use-after-free on unbind
[linux/fpc-iii.git] / drivers / xen / gntdev-dmabuf.h
blob3d9b9cf9d5a16aa441219a19ca81677a66be3dca
1 /* SPDX-License-Identifier: GPL-2.0 */
3 /*
4 * Xen dma-buf functionality for gntdev.
6 * Copyright (c) 2018 Oleksandr Andrushchenko, EPAM Systems Inc.
7 */
9 #ifndef _GNTDEV_DMABUF_H
10 #define _GNTDEV_DMABUF_H
12 #include <xen/gntdev.h>
14 struct gntdev_dmabuf_priv;
15 struct gntdev_priv;
17 struct gntdev_dmabuf_priv *gntdev_dmabuf_init(struct file *filp);
19 void gntdev_dmabuf_fini(struct gntdev_dmabuf_priv *priv);
21 long gntdev_ioctl_dmabuf_exp_from_refs(struct gntdev_priv *priv, int use_ptemod,
22 struct ioctl_gntdev_dmabuf_exp_from_refs __user *u);
24 long gntdev_ioctl_dmabuf_exp_wait_released(struct gntdev_priv *priv,
25 struct ioctl_gntdev_dmabuf_exp_wait_released __user *u);
27 long gntdev_ioctl_dmabuf_imp_to_refs(struct gntdev_priv *priv,
28 struct ioctl_gntdev_dmabuf_imp_to_refs __user *u);
30 long gntdev_ioctl_dmabuf_imp_release(struct gntdev_priv *priv,
31 struct ioctl_gntdev_dmabuf_imp_release __user *u);
33 #endif