I am having issues with my kernel driver build. I'm and building a custom (albeit very basic) NVidia RDMA driver and am receiving build warnings during the make file. Specifically it is looking for two NVidia API calls nvidia_p2p_put_pages and nvidia_p2p_get_pages. Using 'nm' is see these entry points are in the NVidia driver module (nvidia.ko). However, I'm not familiar enough with the internals of the Linux driver make file system to locate those entry points at build time.
The RDMA tool kit documentation refers to an extraction script "./NVIDIA-Linux-x86_64-.run" and a build directory. However, I was unable to locate any build files after extracting the latest driver sources.
As you can tell, I'm rather new to this. Any help would be greatly appreciated. Thanks
nv-p2p.h
header file. Are you including that header file? It sounds like you're wondering what libraries to link against, but this clarity of this question might be improved if you provide the actual error output you are seeing. You might also mention which driver version you are using and where you got the installer (.run file) for it.sh NVIDIA-L... --advanced-options
Run an extract-only job withsh NVIDIA-L... -x
Then change into the created directory. You'll see a bunch of nvidia libraries. Then change into thekernel
directory, and you see the header files likenv-p2p.h
and others. You'll also find an overallmakefile
and aMakefile.nvidia
which shows how to build the kernel module.