How to edit linux kernel source code in MS Visual Studio?
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to edit linux kernel source code in MS Visual Studio?
Hi, I want to edit linux kernel source code in MS Visual Studio. I saw the code and these are c files but there is no project file that i open it and whole project opens up. I can open each individual file but not the whole project.
Thanks in Advance.
Ok but will that allow me to see dependency of files and see which function is defined where and being called where?
Don't know, really. This is Linuxquestions...most of us don't have alot of experience with Microsoft products. The best way to find out is to actually open the file(s), and see what happens, or contact Microsoft/ask on a Microsoft forum.
...will that allow me to see dependency of files and see which function is defined where and being called where?
If you use a recent version of Visual Studio (I tried it in VS2005) you will be able to
Go To Definition
Go To Declaration
Find All References
Go To Header File
If you are trying this with Visual Studio 6.0, it won't work because that version of Visual Studio requires you to build the project before you can get a "browser information database".
I will probably get the big smack down for saying this, but if you don't know, don't post a reply.
Yes, we get the occasional Windows person in here looking for help. And we actually have people who know both Windows and Linux who can answer their questions.
Ok but will that allow me to see dependency of files and see which function is defined where and being called where?
There are system-independent tools showing various dependencies. Start from CSCOPE: http://cscope.sourceforge.net/ ; there are other tools which I do not remember off the top of my head.
I will probably get the big smack down for saying this, but if you don't know, don't post a reply.
Yes, we get the occasional Windows person in here looking for help. And we actually have people who know both Windows and Linux who can answer their questions.
Well, what did you contribute to answering the question?
Yes, there are people here that do know Windows. But that's not the focus of this forum, so directing someone with a Windows question to the right place isn't a bad thing. Yes, I'm sure there are folks who COULD answer it...but then what? More MS questions?? There are folks here that know Mac,too...going to answer those as well?
The focus of this site is Linux....staying on focus is important.
Well, what did you contribute to answering the question?
I answered the question. Completely.
Quote:
Originally Posted by TB0ne
Yes, there are people here that do know Windows. But that's not the focus of this forum, so directing someone with a Windows question to the right place isn't a bad thing.
Actually, the question was about how to navigate the Linux source using Visual Studio. To me, that is clearly a Linux question and this is the correct place to find the answer. Only a person like me who works on Linux kernel source one week and Windows driver source the next would know how to setup Visual Studio to properly handle Linux source code.
Actually, the question was about how to navigate the Linux source using Visual Studio. To me, that is clearly a Linux question and this is the correct place to find the answer. Only a person like me who works on Linux kernel source one week and Windows driver source the next would know how to setup Visual Studio to properly handle Linux source code.
Sorry, I think you're wrong. Using Visual Studio on Windows to open Linux source code, doesn't make it a Linux question. By that definition, if I create a Word document on a Mac, and email it to someone, and they have problems viewing it on their Blackberry, that would make it a Mac question, right?
It's obviously not...what created the file, and what the file is for, makes no difference. The OP is having problems with a Windows program, on a Windows platform.
Sorry, I think you're wrong. Using Visual Studio on Windows to open Linux source code, doesn't make it a Linux question.
It does if you understand the second question:
Quote:
Originally Posted by urfi
Ok but will that allow me to see dependency of files and see which function is defined where and being called where?
Modern versions of Visual Studio have the ability to navigate code similar to the way cscope works.
Quote:
Originally Posted by TB0ne
By that definition, if I create a Word document on a Mac, and email it to someone, and they have problems viewing it on their Blackberry, that would make it a Mac question, right?
No. The two situations are not even remotely similar.
The true equivalent would be if someone was asking how to edit the source for a Windows driver using vim on a Linux box.
If someone posted such a question to a Windows forum, I would expect someone similar to you to admit they did not know the answer and then explain why the post is in the wrong forum. Hopefully, there would be someone as helpful as me to actually answer the question.
Modern versions of Visual Studio have the ability to navigate code similar to the way cscope works.
No. The two situations are not even remotely similar.
The true equivalent would be if someone was asking how to edit the source for a Windows driver using vim on a Linux box.
If someone posted such a question to a Windows forum, I would expect someone similar to you to admit they did not know the answer and then explain why the post is in the wrong forum. Hopefully, there would be someone as helpful as me to actually answer the question.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.