linux-4.4.1/ion_heap_ops
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#d4d921dd]
#backlinks
*説明 [#kbd8e0ff]
-パス: [[linux-4.4.1/drivers/staging/android/ion/ion_priv...
-FIXME: これは何?
--説明
**参考 [#a437773a]
-実装の一覧。
--[[linux-4.4.1/carveout_heap_ops(global)]] : drivers/sta...
--[[linux-4.4.1/chunk_heap_ops(global)]] : drivers/stagin...
--[[linux-4.4.1/ion_cma_ops(global)]] : drivers/staging/a...
--[[linux-4.4.1/system_heap_ops(global)]] : drivers/stagi...
--[[linux-4.4.1/kmalloc_ops(global)]] : drivers/staging/a...
*実装 [#u4edeeaa]
/**
* struct ion_heap_ops - ops to operate on a given heap
* @allocate: allocate memory
* @free: free memory
* @phys get physical address of a buffer...
* physically contiguous heaps)
* @map_dma map the memory for dma to a scat...
* @unmap_dma unmap the memory for dma
* @map_kernel map memory to the kernel
* @unmap_kernel unmap memory to the kernel
* @map_user map memory to userspace
*
* allocate, phys, and map_user return 0 on success, -er...
* map_dma and map_kernel return pointer on success, ERR...
* error. @free will be called with ION_PRIV_FLAG_SHRINK...
* the buffer's private_flags when called from a shrinke...
* case, the pages being free'd must be truly free'd bac...
* system, not put in a page pool or otherwise cached.
*/
struct ion_heap_ops {
int (*allocate)(struct ion_heap *heap,
struct ion_buffer *buffer, unsig...
unsigned long align, unsigned lo...
void (*free)(struct ion_buffer *buffer);
-
--[[linux-4.4.1/ion_heap]]
--[[linux-4.4.1/ion_buffer]]
int (*phys)(struct ion_heap *heap, struct ion_bu...
ion_phys_addr_t *addr, size_t *len);
-
--[[linux-4.4.1/ion_phys_addr_t]]
struct sg_table * (*map_dma)(struct ion_heap *he...
struct ion_buffer *...
void (*unmap_dma)(struct ion_heap *heap, struct ...
void * (*map_kernel)(struct ion_heap *heap, stru...
void (*unmap_kernel)(struct ion_heap *heap, stru...
int (*map_user)(struct ion_heap *mapper, struct ...
struct vm_area_struct *vma);
-
--[[linux-4.4.1/vm_area_struct]]
int (*shrink)(struct ion_heap *heap, gfp_t gfp_m...
-
--[[linux-4.4.1/gfp_t]]
};
*コメント [#f7629d26]
終了行:
*参照元 [#d4d921dd]
#backlinks
*説明 [#kbd8e0ff]
-パス: [[linux-4.4.1/drivers/staging/android/ion/ion_priv...
-FIXME: これは何?
--説明
**参考 [#a437773a]
-実装の一覧。
--[[linux-4.4.1/carveout_heap_ops(global)]] : drivers/sta...
--[[linux-4.4.1/chunk_heap_ops(global)]] : drivers/stagin...
--[[linux-4.4.1/ion_cma_ops(global)]] : drivers/staging/a...
--[[linux-4.4.1/system_heap_ops(global)]] : drivers/stagi...
--[[linux-4.4.1/kmalloc_ops(global)]] : drivers/staging/a...
*実装 [#u4edeeaa]
/**
* struct ion_heap_ops - ops to operate on a given heap
* @allocate: allocate memory
* @free: free memory
* @phys get physical address of a buffer...
* physically contiguous heaps)
* @map_dma map the memory for dma to a scat...
* @unmap_dma unmap the memory for dma
* @map_kernel map memory to the kernel
* @unmap_kernel unmap memory to the kernel
* @map_user map memory to userspace
*
* allocate, phys, and map_user return 0 on success, -er...
* map_dma and map_kernel return pointer on success, ERR...
* error. @free will be called with ION_PRIV_FLAG_SHRINK...
* the buffer's private_flags when called from a shrinke...
* case, the pages being free'd must be truly free'd bac...
* system, not put in a page pool or otherwise cached.
*/
struct ion_heap_ops {
int (*allocate)(struct ion_heap *heap,
struct ion_buffer *buffer, unsig...
unsigned long align, unsigned lo...
void (*free)(struct ion_buffer *buffer);
-
--[[linux-4.4.1/ion_heap]]
--[[linux-4.4.1/ion_buffer]]
int (*phys)(struct ion_heap *heap, struct ion_bu...
ion_phys_addr_t *addr, size_t *len);
-
--[[linux-4.4.1/ion_phys_addr_t]]
struct sg_table * (*map_dma)(struct ion_heap *he...
struct ion_buffer *...
void (*unmap_dma)(struct ion_heap *heap, struct ...
void * (*map_kernel)(struct ion_heap *heap, stru...
void (*unmap_kernel)(struct ion_heap *heap, stru...
int (*map_user)(struct ion_heap *mapper, struct ...
struct vm_area_struct *vma);
-
--[[linux-4.4.1/vm_area_struct]]
int (*shrink)(struct ion_heap *heap, gfp_t gfp_m...
-
--[[linux-4.4.1/gfp_t]]
};
*コメント [#f7629d26]
ページ名: