10-12-2010
Any tips/suggestions for a newbie beginning to read the Linux Kernel Source Code
Hi All,
I recently downloaded the Linux kernel source code, added them all to a project in MS VC++ and plan to read through it so that I can improve the way I code, read/understand a large code database and hopefully contribute something to the development of the Linux OS.
I have taken a couple of courses in OS's and have completed a few projects that included multi-threading (POSIX), system calls, virtual memory, interrupts, signals and so on. It's been a while though since I last used them and I'd like to work on those again.
The courses that I worked on involved enhancing a single threaded OS into a multi-threaded one in multiple phases. However, the Linux source code database is huge and I am actually unsure as to how should I go about debugging / executing code, where should I begin looking, what should I expect when I attempt to execute code and so on. I'm sure most of you must have had similar questions when you began so how did you approach it? Any documentation/pointers that I must read will help a lot. Thanks.
10 More Discussions You Might Find Interesting
1. Linux
Hi ,
where can i get free source code for LINUX commands , OS , system calls etc.
Thanks
Naren (2 Replies)
Discussion started by: naren_chella
2 Replies
2. BSD
Hello Friends,
Am lakshma reddy, doing my masters, i had some interest in exploring the source code of any open LINUX/UNIX, i searched for that i know i can get it but this time am finding it difficult in doing that.
To be frank am new to this UNIX?LINUX platform. I need it since i want to... (1 Reply)
Discussion started by: luckyy
1 Replies
3. UNIX for Advanced & Expert Users
I got the freebsd kernel source from the first install CD(in directory:\7.0-RELEASE\src\),isn't right? if so,how can i read it? Is there any tools? (1 Reply)
Discussion started by: zhouq3132
1 Replies
4. UNIX for Dummies Questions & Answers
I got the freebsd kernel source from the first install CD(in directory:\7.0-RELEASE\src\),isn't right? if so,how can i read it? Is there any tools? (4 Replies)
Discussion started by: zhouq3132
4 Replies
5. Shell Programming and Scripting
Unix is written in C. From where u can see the source code of unix or linux (1 Reply)
Discussion started by: pritish.sas
1 Replies
6. Fedora
Hi Friends,
This is my first ever post on this forum. I am a new user in the Linux field. Although, I have been working for sometime with CentOS at my work, I would consider myself an amateur only in this field. :D
The way file system works in linux and the reason its open-source, has really... (7 Replies)
Discussion started by: rohitrajjain
7 Replies
7. BSD
Hi
I need the BSD core (kernel) operating system
Please let me download link
I'm from Iran
Please help me
Thank you very much (1 Reply)
Discussion started by: sepadl71
1 Replies
8. Solaris
Hi gurus
Could anybody tell me which file is read by kernel to set its default system kernal parameters values in solaris. Here I am not taking about /etc/system file which is used to load kernal modules or to change any default system kernal parameter value
Is it /dev/kmem file or something... (1 Reply)
Discussion started by: girish.batra
1 Replies
9. Programming
I have found some definitions as below, can anyone explain me what it means and why it is being used this way please.
asmlinkage void __sched schedule(void) (4 Replies)
Discussion started by: kumaran_5555
4 Replies
10. Linux
Hi,
Can i just ask how I can create a bootable PXE image from the built kernel source.
What files do I need to get?
Thanks! (1 Reply)
Discussion started by: h0ujun
1 Replies
LEARN ABOUT LINUX
getdirentries
GETDIRENTRIES(3) Linux Programmer's Manual GETDIRENTRIES(3)
NAME
getdirentries - get directory entries in a file system-independent format
SYNOPSIS
#include <dirent.h>
ssize_t getdirentries(int fd, char *buf, size_t nbytes , off_t *basep);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
getdirentries(): _BSD_SOURCE || _SVID_SOURCE
DESCRIPTION
Read directory entries from the directory specified by fd into buf. At most nbytes are read. Reading starts at offset *basep, and *basep
is updated with the new position after reading.
RETURN VALUE
getdirentries() returns the number of bytes read or zero when at the end of the directory. If an error occurs, -1 is returned, and errno
is set appropriately.
ERRORS
See the Linux library source code for details.
CONFORMING TO
Not in POSIX.1-2001. Present on the BSDs, and a few other systems. Use opendir(3) and readdir(3) instead.
SEE ALSO
lseek(2), open(2)
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU
2007-07-26 GETDIRENTRIES(3)