#include <habanalabs_accel.h>
◆ [union]
◆ addr
◆ [struct]
| struct { ... } hl_mem_in::alloc |
structure for device memory allocation (used with the HL_MEM_OP_ALLOC op) @mem_size: memory size to allocate @page_size: page size to use on allocation. when the value is 0 the default page size will be taken.
◆ block_addr
| __u64 hl_mem_in::block_addr |
◆ ctx_id
◆ device_virt_addr
| __u64 hl_mem_in::device_virt_addr |
◆ [struct]
| struct { ... } hl_mem_in::export_dmabuf_fd |
structure for exporting DMABUF object (used with the HL_MEM_OP_EXPORT_DMABUF_FD op) @addr: for Gaudi1, the driver expects a physical address inside the device's DRAM. this is because in Gaudi1 we don't have MMU that covers the device's DRAM. for all other ASICs, the driver expects a device virtual address that represents the start address of a mapped DRAM memory area inside the device. the address must be the same as was received from the driver during a previous HL_MEM_OP_MAP operation. @mem_size: size of memory to export. @offset: for Gaudi1, this value must be 0. For all other ASICs, the driver expects an offset inside of the memory area describe by addr. the offset represents the start address of that the exported dma-buf object describes.
◆ flags
◆ [struct]
| struct { ... } hl_mem_in::free |
structure for free-ing device memory (used with the HL_MEM_OP_FREE op) @handle: handle returned from HL_MEM_OP_ALLOC
◆ handle
◆ hint_addr
| __u64 hl_mem_in::hint_addr |
◆ host_virt_addr
| __u64 hl_mem_in::host_virt_addr |
◆ [struct]
| struct { ... } hl_mem_in::map_block |
structure for mapping hw block (used with the HL_MEM_OP_MAP_BLOCK op) @block_addr:HW block address to map, a handle and size will be returned to the user and will be used to mmap the relevant block. only addresses from configuration space are allowed.
◆ [struct]
| struct { ... } hl_mem_in::map_device |
structure for mapping device memory (used with the HL_MEM_OP_MAP op) @hint_addr: requested virtual address of mapped memory. the driver will try to map the requested region to this hint address, as long as the address is valid and not already mapped. the user should check the returned address of the IOCTL to make sure he got the hint address. passing 0 here means that the driver will choose the address itself. @handle: handle returned from HL_MEM_OP_ALLOC.
◆ [struct]
| struct { ... } hl_mem_in::map_host |
structure for mapping host memory (used with the HL_MEM_OP_MAP op) @host_virt_addr: address of allocated host memory. @hint_addr: requested virtual address of mapped memory. the driver will try to map the requested region to this hint address, as long as the address is valid and not already mapped. the user should check the returned address of the IOCTL to make sure he got the hint address. passing 0 here means that the driver will choose the address itself. @size: size of allocated host memory.
◆ mem_size
| __u64 hl_mem_in::mem_size |
◆ num_of_elements
| __u32 hl_mem_in::num_of_elements |
◆ offset
◆ op
◆ page_size
| __u64 hl_mem_in::page_size |
◆ [struct]
| struct { ... } hl_mem_in::unmap |
structure for unmapping host memory (used with the HL_MEM_OP_UNMAP op) @device_virt_addr: virtual address returned from HL_MEM_OP_MAP
The documentation for this struct was generated from the following file: