kernel-programming

Timing the Linux Kernel boot-time optimisation

I am trying to optimise the boot-up time of linux on an embedded device (not PC) Currently to profile the boot-up sequence, I have enabled the timing info on printk logs. Is this the most optimum way? If not, how do i profile the boot-up sequence (with timing) with minimum overhead? PS: I have a terminal (of the device) over a serial-...

"FATAL: Module not found error" using modprobe

Hello, i have an problem with modprobe command...i compiled the hello world module and inserted using "insmod" command...and its working..when i see "lsmod" its in that list...but when i insert this module using "modprobe" i am getting the FATAL error....that is root@okapi:/home/ravi# modprobe ./hello.ko FATAL: Module ./hello.ko not f...

Kernel Panic When Booting in RedHat Linux under VMWare Fusion : Filesystem Not Found

This should be simple. Yet, it's giving me Hell. Problem I have compiled the latest kernel and when I reboot my box, it generates a kernel panic related to the filesystem. Question How do I get the new kernel to recognize the VMWare filesystem? There must be some setting somewhere that lets the Linux installation know that the "hard ...

Errors compiling Linux Kernel mode program

Hi Guys, I wish to access some registers of my ARM Cortex-A8 board which are by default in a non-accessible state. Ubuntu 9.10 runs on this board. So, to access them I have to in-turn change 1 other register settings (Allow-access-register) first. To change this Allow-access-register, I found out that I must do it only in Kernel mode an...

Execute a program in kernel space in Linux

If I want to execute a user program (not a kernel module) in Linux kernel space, what options do I have? I have looked at KML(kernel mode linux) but that is specific to IA-32 architecture. I want a solution which is cross platform and can work on embedded linux systems. ...

what is a kernal, bootloader?

hello friends, i need to know about boot loader and kernel in deep from its basic. i search the google and got a lot of links... but i need to find the good ones. if you pals have any docs or video or htmls share with me..... thanks in advance ...

WDK : get processId by name.exe

Hi, I'm developing a driver in Windows Filtering Platform and I need the process ID of another process to do what I need to do. I know only the file name of that process (name.exe). In win32 I could use the function CreateToolhelp32Snapshot to get the list of all processes and I could search the PID there. ( http://msdn.microsoft.com/en...

Developing a kernel patch or driver for windows?

How long, approximately, would it take to develop a kernel patch or driver for the windows NT kernel/series of kernels, that would introduce new functionality, or replace existing functionality? For example, to add in a different encryption algorithm, or to implement some sort of new security model. What are the advantages/disadvantag...

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...

User-mode and kernel driver communication

Hi all, is there a way that an application running at user-mode can communicate with another application at the kernel mode. For example, I would like to collect some infomation from the network driver and feed it some sniffer app running at user lever. How do I proceed . Please advise. ...

Are there any open source C Library (not c++) for Windows Driver Development ?

Are there any open source C Library (not c++) for Windows Driver Development ? I am developing a network device driver that need some functionality such as RegEx, string manipulation, Object Oriented by C and XML and so on... 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...

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...

Device driver without the device?

I'm creating an application that needs to use some kernel level modules, for which I've divided the app into 2: one user-level program and one kernel level program. After reading about device drivers and walking through some tutorials, I'm a little confused. Can there be a device driver without any specific device associated with it? ...

Linux Kernel Programming: “Unable to handle kernel NULL pointer dereference at virtual address [address]”

For a class assignment, we are writing a custom syscall which pulls certain information about the existing process tree. The syscall is working fine for the most part and gets the appropriate information. However, a few processes it, in crashes with the error message, "Unable to handle kernel NULL pointer dereference at virtual address...

Assembly Language kernel

I am trying to write a kernel purely in assembly language. How do i go 'bout the development environment and general setup that lets me control what i want it to do? ...

how to use CryptoAPI in the linux kernel 2.6

I have been looking for some time but have not found anywhere near sufficient documentation / examples on how to use the CryptoAPI that comes with linux in the creation of syscalls / in kernel land. If anyone knows of a good source please let me know, I would like to know how to do SHA1 / MD5 and Blowfish / AES within the kernel space o...

Linux version of Windows "nonpaged pool" does such a thing exist?

I have been working with an Windows application which reads from the 'nonpaged pool' to increase performance. In this case the nonpaged pool is the area of memory where the network drivers write data as they grab it off the wire. How does Linux handle memory which network drivers (or other drivers) which require high speed exclusive ac...

Linux kernel module compiling

Hello, I try to compile simple linux kernel module: #include <linux/module.h> #include <linux/kernel.h> int init_module(void) { printk("Hello world 1.\n"); return 0; } void cleanup_module(void) { printk(KERN_ALERT "Goodbye world 1.\n"); } My makefile: obj-m = testmodule.o KVERSION = $(shell uname...

heard of a deconstructed kernel project?

I recall seeing a project for assembling a kernel out of parts that were deliberately factored/deconstructed so as to maximize separation. Does anyone know of such a project? It goes without saying I need it to be Open Source. ...