Everything that includes the source code of Unix programs for example compiling, installing or how to retrieve the code for studying.
225
votes
7answers
19k views
Understanding the Linux kernel source
I am trying to understand how a function, say mkdir, works by looking at the kernel source. This is an attempt to understand the kernel internals and navigate between various functions. I know mkdir ...
13
votes
5answers
594 views
How to compile and install programs from source
This is an issue that really limits my enjoyment of Linux. If the application isn't on a repository or if it doesn't have an installer script, then I really struggle where and how to install an ...
4
votes
1answer
1k views
What does a kernel source tree contain? Is this related to Linux kernel headers?
In books, I typically read references to the Linux Source Tree at /usr/src/linux with the usual set of subdirectories (arch, block, crypto, ...).
I was expecting this tree to contain the binary files ...
7
votes
3answers
363 views
Given a git patch id, how to find out which kernel release contains it?
Assume I have some issue that was fixed by a recent patch to the official Linux git repository. I have a work around, but I’d like to undo it when a release happens that contains my the fix. I know ...
5
votes
2answers
480 views
How to grep on source code without catching comments
I search a way to grep on source code without having sometimes false-positive because of comments. For instance if I search on foo on this .c source code :
/*
* foo has changed [...] and is now a ...
1
vote
1answer
713 views
Unpacking kernel-source rpm off-system (OpenSuse)?
I'm using OpenSuse 11.2 from a LiveUSB USB flash/stick, which arguably has not much place on it. I need to get the Linux sources for this version of OpenSuse, as they are needed to build a driver for ...
1
vote
2answers
813 views
How / where to get sources for kernel-2.6.36-gentoo-r4 in Gentoo Linux distribution?
How can I get (i.e. what command to use) sources for kernel-2.6.36-r4 (uname -a says that it is version 2.6.36-gentoo-r4), or where from I can download it?
I want to compile the userside 'perf' ...
-1
votes
2answers
179 views
source script as command [closed]
For some reason (?), often when I write scripts nowadays they do not work, or work only in part, and then I try with . or source and they work perfectly. I'm unsure what is causing this as the scripts ...

