/
githubmirror
/
rdma-core
Обзор
Документация
Войти
/
githubmirror
/
rdma-core
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
pyverbs/dmabuf_alloc.h
19 строк
499 B
Jianxin Xiong
pyverbs,tests: Cosmetic improvements for dma-buf allocation routines
05 фев 2021, 02:25
05 фев 2021, 02:25
d473a55
Код
Авторство
О чём код?
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* * Copyright 2020 Intel Corporation. All rights reserved. See COPYING file */ #ifndef _DMABUF_ALLOC_H_ #define _DMABUF_ALLOC_H_ #include <stdint.h> struct dmabuf; struct dmabuf *dmabuf_alloc(uint64_t size, int gpu, int gtt); void dmabuf_free(struct dmabuf *dmabuf); int dmabuf_get_drm_fd(struct dmabuf *dmabuf); int dmabuf_get_fd(struct dmabuf *dmabuf); uint64_t dmabuf_get_offset(struct dmabuf *dmabuf); #endif /* _DMABUF_ALLOC_H_ */