Skip to content

Instantly share code, notes, and snippets.

@kienvo
Created November 16, 2021 19:06
Show Gist options
  • Save kienvo/7087503513937edbfce0d6ce6ee8feef to your computer and use it in GitHub Desktop.
Save kienvo/7087503513937edbfce0d6ce6ee8feef to your computer and use it in GitHub Desktop.
IntelliSense configuration for kernel headers
{
"configurations": [
{
"name": "Linux",
"includePath": [
// https://github.com/microsoft/vscode-cpptools/issues/5588#issuecomment-662116156
"${workspaceFolder}/**",
"/usr/src/linux-headers-5.4.0-81-generic/arch/x86/include",
"/usr/src/linux-headers-5.4.0-81-generic/arch/x86/include/generated",
"/usr/src/linux-headers-5.4.0-81-generic/include",
"/usr/src/linux-headers-5.4.0-81-generic/arch/x86/include/uapi",
"/usr/src/linux-headers-5.4.0-81-generic/arch/x86/include/generated/uapi",
"/usr/src/linux-headers-5.4.0-81-generic/include/uapi",
"/usr/src/linux-headers-5.4.0-81-generic/include/generated/uapi",
"/usr/src/linux-headers-5.4.0-81-generic/ubuntu/include",
"/usr/lib/gcc/x86_64-linux-gnu/9/include"
],
"defines": [
"__KERNEL__",
"__SMP__",
"MODULE"
],
"intelliSenseMode": "gcc-x64",
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"compilerArgs": [
"-nostdinc",
"-isystem"
],
"configurationProvider": "ms-vscode.makefile-tools",
"cppStandard": "c++11"
}
],
"version": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment