Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12323

Include Linux kernel headers for intellisense in vs code

$
0
0

I want to use VS code for developing linux kernel modules. I added the path to my browse path, but unfortunately it's not working.Here's my c_cpp_properties.json:

{"configurations": [        {"name": "Linux","includePath": ["${HOME}/Workspaces/kernel-sources/mainline/linux/include","${workspaceRoot}"            ],"defines": [],"intelliSenseMode": "clang-x64","browse": {"path": ["${HOME}/Workspaces/kernel-sources/mainline/linux/include/","${workspaceRoot}"                ],"limitSymbolsToIncludedHeaders": true,"databaseFilename": ""            }        }    ],"version": 3}

I want to include like #include <linux/miscdevice.h>but the intellisense parser is unable to find that file. I changed the parser engine to "Tag Parser" because the new default parser is unable to recursive include files, as they are in the kernel sources.Any thoughts how to configure my intellisense?

I use vs code 1.19 for ubuntu 16.04


Viewing all articles
Browse latest Browse all 12323

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>