Skip to content

Commit

Permalink
gpuSetWriteEn: Add missing fd argument; fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rclaus2 committed Oct 11, 2024
1 parent 35f3768 commit 047aab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/GpuAsync.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
**/
#define GPU_Add_Nvidia_Memory 0x8002 // Command to add NVIDIA GPU memory
#define GPU_Rem_Nvidia_Memory 0x8003 // Command to remove NVIDIA GPU memory
#define GPU_Set_Write_ENable 0x8004 // Set Write Enable Flag
#define GPU_Set_Write_Enable 0x8004 // Set Write Enable Flag

/**
* struct GpuNvidiaData - Represents NVIDIA GPU memory data.
Expand Down Expand Up @@ -95,7 +95,7 @@ static inline ssize_t gpuRemNvidiaMemory(int32_t fd) {
*
* Return: 0 on success, negative error code on failure.
*/
static inline ssize_t gpuSetWriteEn(uint32_t idx) {
static inline ssize_t gpuSetWriteEn(int32_t fd, uint32_t idx) {
uint32_t lidx = idx;
return(ioctl(fd, GPU_Set_Write_Enable, &lidx));
}
Expand Down

0 comments on commit 047aab7

Please sign in to comment.