XenevaOS
Loading...
Searching...
No Matches
Public Attributes | List of all members
hl_info_args Struct Reference

#include <habanalabs_accel.h>

Public Attributes

__u64 return_pointer
 
__u32 return_size
 
__u32 op
 
union { 
 
   __u32   dcore_id 
 
   __u32   ctx_id 
 
   __u32   period_ms 
 
   __u32   pll_index 
 
   __u32   eventfd 
 
   __u32   user_buffer_actual_size 
 
   __u32   sec_attest_nonce 
 
   __u32   array_size 
 
   __u32   fw_sub_opcode 
 
};  
 
__u32 pad
 

Detailed Description

struct hl_info_args - Main structure to retrieve device related information. @return_pointer: User space address of the relevant structure related to HL_INFO_* operation mentioned in @op. @return_size: Size of the structure used in @return_pointer, just like "size" in "snprintf", it limits how many bytes the kernel can write. For hw_events array, the size should be hl_info_hw_ip_info.num_of_events * sizeof(__u32). @op: Defines which type of information to be retrieved. Refer HL_INFO_* for details. @dcore_id: DCORE id for which the information is relevant (for Gaudi refer to enum gaudi_dcores). @ctx_id: Context ID of the user. Currently not in use. @period_ms: Period value, in milliseconds, for utilization rate in range 100ms - 1000ms in 100 ms resolution. Currently not in use. @pll_index: Index as defined in hl_<asic type>_pll_index enumeration. @eventfd: event file descriptor for event notifications. @user_buffer_actual_size: Actual data size which was copied to user allocated buffer by the driver. It is possible for the user to allocate buffer larger than needed, hence updating this variable so user will know the exact amount of bytes copied by the kernel to the buffer. @sec_attest_nonce: Nonce number used for attestation report. @array_size: Number of array members copied to user buffer. Relevant for HL_INFO_USER_MAPPINGS info ioctl. @fw_sub_opcode: generic requests sub opcodes. @pad: Padding to 64 bit.

Member Data Documentation

◆ [union]

union { ... } hl_info_args

◆ array_size

__u32 hl_info_args::array_size

◆ ctx_id

__u32 hl_info_args::ctx_id

◆ dcore_id

__u32 hl_info_args::dcore_id

◆ eventfd

__u32 hl_info_args::eventfd

◆ fw_sub_opcode

__u32 hl_info_args::fw_sub_opcode

◆ op

__u32 hl_info_args::op

◆ pad

__u32 hl_info_args::pad

◆ period_ms

__u32 hl_info_args::period_ms

◆ pll_index

__u32 hl_info_args::pll_index

◆ return_pointer

__u64 hl_info_args::return_pointer

◆ return_size

__u32 hl_info_args::return_size

◆ sec_attest_nonce

__u32 hl_info_args::sec_attest_nonce

◆ user_buffer_actual_size

__u32 hl_info_args::user_buffer_actual_size

The documentation for this struct was generated from the following file: