mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-11 02:29:58 +00:00
570.207
This commit is contained in:
@@ -1627,6 +1627,7 @@ static int nv_open_device(nv_state_t *nv, nvidia_stack_t *sp)
|
||||
nv_assert_not_in_gpu_exclusion_list(sp, nv);
|
||||
|
||||
NV_ATOMIC_INC(nvl->usage_count);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -2073,6 +2073,22 @@ NV_STATUS NV_API_CALL os_get_random_bytes
|
||||
return NV_OK;
|
||||
}
|
||||
|
||||
NvU32 NV_API_CALL os_get_current_process_flags
|
||||
(
|
||||
void
|
||||
)
|
||||
{
|
||||
NvU32 flags = OS_CURRENT_PROCESS_FLAG_NONE;
|
||||
|
||||
if (current->flags & PF_EXITING)
|
||||
flags |= OS_CURRENT_PROCESS_FLAG_EXITING;
|
||||
|
||||
if (current->flags & PF_KTHREAD)
|
||||
flags |= OS_CURRENT_PROCESS_FLAG_KERNEL_THREAD;
|
||||
|
||||
return flags;
|
||||
}
|
||||
|
||||
NV_STATUS NV_API_CALL os_alloc_wait_queue
|
||||
(
|
||||
os_wait_queue **wq
|
||||
|
||||
Reference in New Issue
Block a user