python312Packages.llama-index: 0.12.9 -> 0.12.9.post1 (#371957)
[NixPkgs.git] / pkgs / by-name / li / libnvidia-container / modprobe.patch
blob1e0f8bdddc22555a3cf9bbbf82fc73d1ff9eed29
1 diff -ruN nvidia-modprobe-@modprobeVersion@/modprobe-utils/nvidia-modprobe-utils.c nvidia-modprobe-@modprobeVersion@/modprobe-utils/nvidia-modprobe-utils.c
2 --- nvidia-modprobe-@modprobeVersion@/modprobe-utils/nvidia-modprobe-utils.c 2021-11-13 14:36:58.096684602 +0000
3 +++ nvidia-modprobe-@modprobeVersion@-patched/modprobe-utils/nvidia-modprobe-utils.c 2021-11-13 14:43:40.965146390 +0000
4 @@ -959,10 +959,10 @@
5 return mknod_helper(major, minor_num, vgpu_dev_name, NV_PROC_REGISTRY_PATH);
8 -static int nvidia_cap_get_device_file_attrs(const char* cap_file_path,
9 - int *major,
10 - int *minor,
11 - char *name)
12 +int nvidia_cap_get_device_file_attrs(const char* cap_file_path,
13 + int *major,
14 + int *minor,
15 + char *name)
17 char field[32];
18 FILE *fp;
19 diff -ruN nvidia-modprobe-@modprobeVersion@/modprobe-utils/nvidia-modprobe-utils.h nvidia-modprobe-@modprobeVersion@/modprobe-utils/nvidia-modprobe-utils.h
20 --- nvidia-modprobe-@modprobeVersion@/modprobe-utils/nvidia-modprobe-utils.h 2021-11-13 14:36:58.096684602 +0000
21 +++ nvidia-modprobe-@modprobeVersion@-patched/modprobe-utils/nvidia-modprobe-utils.h 2021-11-13 14:38:34.078700961 +0000
22 @@ -87,6 +87,7 @@
23 int nvidia_nvswitch_get_file_state(int minor);
24 int nvidia_cap_mknod(const char* cap_file_path, int *minor);
25 int nvidia_cap_get_file_state(const char* cap_file_path);
26 +int nvidia_cap_get_device_file_attrs(const char* cap_file_path, int *major, int *minor, char *name);
27 int nvidia_cap_imex_channel_mknod(int minor);
28 int nvidia_cap_imex_channel_file_state(int minor);
29 int nvidia_get_chardev_major(const char *name);
30 int nvidia_msr_modprobe(void);