kernel

How can virtual address space mapping be acceptable from a performance point of view?

This question is aimed at any OS using a VAS model, but I'm going to specify windows nt, since that's the system I know best. As we all know, by default, processes on 32 bit windows get 2 GB of memory all by itself. This memory can be located in system memory, a swap file, an usb drive etc. This means that several processes can have al...

Amazon EC2 - Can I 'associate' a kernel (aki) with a specific AMI?

I am making my own AMIs (Virtual machines on Amazon's EC2). I can't use the default kernel. I have to use one of the other provided amazon kernels. I am trying to make this AMI be really really easy to use and make sure an idiot can start it up. However there is the important step where they have to choose this kernel. Is there anyway to...

Struct that apparently defines no instances in Unix v6

I'm going through the code of Unix version 6 with the Lion's book. One of the header files (param.h, can be accessed here) defines the following structs: /*struct to access integers*/ /*single integer */ struct { int integ; }; /*in bytes*/ struct { char lobyte; char hibyte; }; These structures don't seem to define any instance, nor...

Determine kernel bitness in Mac OS X 10.6

I know that I can use the terminal and the system-profiler command to determine the current bitness of the kernel but I am trying to determine if there is a way to get that same information programmatically in objective-c. I have looked through Carbon's gestalt, but haven't seen anything that would tell me bitness of the kernel. Does a...

What does kernel memory contain in Windows OS?

Hi. As is widely known, a program running under 32-bit Windows OS has only 2GB of virtual memory available. Also it is known that the other 2GB are reserved as Kernel space. But what is actually in that kernel space? I could understand reserve needed for kernel itself, but why kernel space in VAS of process? Thanks. ...

Need some help with Android kernel

Hello guys, I am interested in Android kernel level programming. Actually I am a Linux kernel programmer. I would like to know how to start with the kernel and how compile, boot and about the Kernel level subsystems (EX: How file systems are implemented etc..) in Android. Any books or articles or a good guide to start are very much ap...

How do drivers become a part of the kernel?

Someone told me that for most operating systems, the drivers become a part of the kernel. How does this happen? Does the kernel decompile itself, add the driver, and recompile itself? Or are the drivers plug ins for the kernel? Are drivers even their own separate programs? ...

Few Questions regarding Android Kernel

Hi, I am new to android kernel and Mobile Operating Systems and I have a few questions regarding android kernel. 1) Does Android OS has Kernel Mode and a User mode like Normal desktop OSs ? Also does it support things like Virtual Memory ? Also I heard about Dalvik VMM. Is a copy of dalvik VMM created for each and every process ? 2) A...

building linux kernels

Hi i Just got the book Linux Kernel Development by Robert Love . It has lots of places where you are required to modify and build the kernel . So how should i go with it . Is it better to use a VM , or should i somehow get a proper test machine for it , since i dont want to goof up on my system and data. ...

Send Events to a Windows Service from Kernel Mode

I am writing a piece of software that consists of a kernel mode driver and a user mode Windows service. The kernel driver needs to notify the service of different events and information, which the service will then process. My question is this: What is the best way to set up this communication? I know it is possible to get a message ...

How to figure out the Linux kernel's source code?

There are some books about Linux developing, internals, managers and so on. but I'm thinking about a documentation that Linux developers write when the commit a patch on the kernel. Does something like that exist? I know there is a mailing list for kernel newbies and some stuff like this but I'm not a newbie and I don't want to be kernel...

Resources to help learn windows kernel development in an operating systems class?

I am currently in an university operating system class and we are working on the windows kernel for our projects. I am however having a real hard time dredging up resources to help learn the basics of os development, windows kernel development and just generally getting around the windows api. We are using the book Microsoft Internals by...

Reading blocks from devices

Hi. I trying to write a fs in kernel mode, and i can not use buffers/ cache (such as in sb_bread(..)). who do I read and write blocks directly from/to my block device. Im writing a distributed fs (over netwrok) since not all blocks are from same device/machine. buffers are little problematic. thanks, Dan ...

Good Open source avenues to work on OS / low level distributed system stuff.

Or rather, if I'm reading "Understanding the Linux Kernel" and more of Linux/OS level or more low level dist. computing stuff, what kind of open source projects are worthing taking a look at - except of course the Linux distros. Thanks Ajay ...

Undeclared identifiers in C

Hi all I've been trying to compile a program that uses PCL. However, I keep getting this error: test.c:23: error: ‘PCL_CNT_TYPE’ undeclared (first use in this function) test.c:23: error: (Each undeclared identifier is reported only once test.c:23: error: for each function it appears in.) test.c:23: error: expected ‘;’ before ‘i_result_...

Can anyone recommend a good book on the linux kernel?

Hi, I'm looking for a good book on the linux kernel. I've found this one http://www.kroah.com/lkn/ which is free. I'd like something I can read when away from my computer though and so want to buy a good book. I was thinking about getting this hxxp://oreilly.com/catalog/9780596000028 (cannot submit more than one link). Has anyone any...

Cross-compiler Toolchain and OpenEmbedded +BeagleBoard

Hi! I recently start building the filesystem for Beagle Board through OpenEmbedded, but now I also want to change its kernel using the shown here: http://elinux.org/BeagleBoard#Linux_kernel. To do that I need the staging and the cross-compiler toolchain directories, but I can't find them. The top level directories that a...

How can I proxy mmap reads and writes across a network?

I'm working on software to control a mmap'd device on an embedded ARM system, but have run into a few situations where the debugging and development tools available haven't been sufficient. i.e. Instrumentation tools like valgrind and higher end thread profilers are unavailable. What I'd like to do is compile my code on an x86 machine, ...

How does OS locate contents on disk that have not been loaded into memory when page fault exception is raised?

When a page fault exception is raised because the content CPU is trying to access have not been loaded in to memory, how does the OS locate the missing content on the secondary storage (e.g. hard disk)? Thanks for your explanation in advance. -ivan ...

Scheduler hacking in Freebsd 5.2.1

How can I modify the thread priorities within, umm... the Timesharing class? In case I want to implement my own scheduler, how would I have to do that? (like assigning priorites on my own terms) How do I play around with the time slice values (or time quantums, as they are referred to by a lot of people) Edited I figured that the time q...