kernel

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

Find the OS X kext library that contains a symbol

Hello, with Snow Leopard 10.6.4 I am obtaining an unresolved symbol: $ sudo kextutil KRPC.kext (kernel) kxld[com.machackershandbook.kext.KRPC]: The following symbols are unresolved for this kext: (kernel) kxld[com.machackershandbook.kext.KRPC]: _mig_buckets I cannot find this symbol using kextfind, however this symbol is exported in ...

Linux kernel that runs python file for init

Would it be possible and not incredibly difficult to build a linux kernel, with a python interpreter built in or accessible from the kernel, that could run a python file as it's init process? ...

How do i unstrip an object file ?

How do i unstrip a stripped object file ? Does eu-unstrip from elfutils can make this for me ? I need this to convert a zImage kernel to vmlinux without recompiling. This is apart of my script: magic="1f 8b 08 00" full_line=$(od -A d -t x1 zImage | grep "$magic" ) offset_full_line=$( echo $full_line | cut -f1 -d" ") data_full_line=...

How does a Windows Kernel mode Driver, access paged memory ?

1) A usermode process has its own "address context", which maps the user-mode virtual addresses to a unique collection of physical page frames. That is, the meaning of any particular virtual address changes from one moment to the next as the Windows XP scheduler switches threads. Part of work of "switching threads" is to change the page...

Two Spinlocks on same processor ?

Can two CPUs hold two "different" spin locks simultaneously at same time? So...does this mean: a sigle(uniprocessor) CPU cannot hold two "different" spinlocks at the same time? So...does this mean: the number of spinlocks on a single CPU cannot be > 1. PS:"different" implying spinlock associated with different memory resources. Doe...

Opening win-socket (tcp) in kernel mode specifying sequence number

Hi, I'm writing a windows driver (of course in c and I'm in kernel mode) and I'd like to open a tcp socket from the outside specifying the sequence number the first SYN packet should have. I tried modifying the packet filtering it with Windows Filtering Platform, but of course it doesn't work because the stack think that the correct num...

Implement CPU extensions in a kernel module

Hi all, I'm looking for information relating to implementing certain CPU extensions in a kernel module. I've found something related: http://www.mirrors.docunext.com/lxr/http/source/arch/mips/kernel/unaligned.c in fact, it's the only source code that I can find that is even close. Basically, I have a binary only shared object built wit...

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

How are same virtual address for different processes mapped to different physical addresses

I have taken a course about Operating System design and concept and now I am trying to study Linux kernel thoroughly. I have a question that I cannot get rid of. In modern operating systems each process has own virtual address space(VAS) (eg, 0 to 2^32-1 in 32-bit systems). This provides many advantages. But in the implementation I am co...

What book about OSX internals can you recommend?

There's http://www.amazon.com/gp/product/0321278542/ but it looks a bit dated. Specificaly, it talks about bits that are no longer in use (powerpc bootloader for example) on modern machines. So, my question really is: is there any other book, as comprehensive and detailed as this one? ...

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

Custom Hardware

I am in the process of redesigning my EE seniro design project (Digital Car Instrument Cluster) and would like to port the system from a custom light weight ubuntu to a android based system. I was wondering can we install android onto a small atom based motherboard and if so does anyone know how we can writer driver to communicate with ...

How close are Mac OS X and BSD related?

I read that Mac OS X and bsd are related. How close are they related. Can Mac OS X software be tweaked and installed on BSD? ...

How does Linux determine the next PID?

How does Linux determine the next PID it will use for a process? The purpose of this question is to better understand the Linux kernel. Don't be afraid to post kernel source code. If PIDs are allocated sequentially how does Linux fill in the gaps? What happens when it hits the end? For example if I run a PHP script from Apache that ...

Getting the Physical Device Object name of a disk device

I need to retrieve the "Physical Device Object name" of a disk device from a user mode application on Windows. To be specific what I mean by that - this is a screenshot how you can see it through the Window Device Manager: I have a solution now that involves a kernel driver that gets loaded and interrogated through IOCTLs. Once in kern...

How to test a small kernel in a VM?

Say I developed a small kernel and I wanted to try it out in a VM. If I have the kernel image, how would I get it into a VM in VirtualBox, for example? More importantly, how do I get a bootloader like Grub installed into the VM? ...

Why spinlocks are used in interrupt handlers

Hi, I would like to know why spin locks are used instead of semaphores inside an interrupt handler. Thanks & Regards, Mousey ...

Networking from a Kernel Mode Driver

Hi, The question is pretty self-explanatory, I require the ability to open and control a socket from a kernel mode driver in windows xp. I know that vista and after provides a kernel mode winsock equivalent, but no such thing for XP. Cheers Edit I've had a recommendation to have a user-mode service doing the socket work, and one to u...

Sendind pointers to different process and using them?

Is it possible to send a pointer to an object via Mach IPC by casting it into an int and then casting it back into the object. Would that work and how can that be done? I want to send a CALayer object over to a different process. I don't think I can send raw objects via Mach IPC. ...