kernel

How does 2 or more processes interact with the keyboard?

Hello. I have been thinking alot over keyboard handling. How does it work? I cant seem to google me to a good explaining. I know that a keyboard interrupt is made every time a key is pressed. The processor halts whatever it is processing and load the keyboard data from the keyboard buffer, storing it in a system level buffer. But what ha...

Is there an advantage of the operating system understanding the characteristics of how a thread may be used?

Is there an advantage of the operating system understanding the characteristics of how a thread may be used? For example, what if there were a way in Java when creating a new thread to indicate that it would be used for intensive CPU calculations vs will block for I/O. Wouldn't thread scheduling improve if this were a capability? ...

Git clone hang

As a prospective Linux developer I want to clone the git repositoy of Torvalds. The problem is when I call the git clone after some time the git clone process just hang. No error message no timeout nothing. So I press ctrl+c and I restart and again, same thing. It hang at random percentage. It hang during the "Retrieving object" process...

Good micro-kernel book suggestions

I am currently 'dreaming' about writing a small micro-kernel for a custom processor. The main reason for doing so is to have an easier way for interfacing a more complicated OS on top of it. However, I know very little about these things. I have read some basic OS books like the one by Andrew Tanenbaum and the 386BSD Kernel book and I ...

What Java application is available to stress-test a virtual machine?

I am interested in ways to stress-test as well as benchmark the SANOS operating system kernel. ...

process scheduling question

For example, a process waiting for disk I/O to complete will sleep on the address of the buffer header corresponding to the data being transferred. When the interrupt routine for the disk driver notes that the transfer is complete, it calls wakeup on the buffer header. The interrupt uses the kernel stack for whate...

How does sched_setaffinity() work?

I am trying to understand how the linux syscall sched_setaffinity() works. This is a follow-on from my question here. I have this guide, which explains how to use the syscall and has a pretty neat (working!) example. So I downloaded the Linux 2.6.27.19 kernel sources. I did a 'grep' for lines containing that syscall, and I got 91 res...

How do I programatically disable hardware prefetching?

I would like to programatically disable hardware prefetching. From Optimizing Application Performance on Intel® Core™ Microarchitecture Using Hardware-Implemented Prefetchers and How to Choose between Hardware and Software Prefetch on 32-Bit Intel® Architecture, I need to update the MSR to disable hardware prefetching. Here is a rele...

Using user-space processes to assist kernel modules

I'm working on one piece of a very high performance piece of hardware that works under Linux. We'd like to cache some data but we're worried about memory consumption - so the idea is to create a user process to manage the cache. That way, the cache can be in virtual memory, not in kernel space, et cetera. The question is: what's the bes...

Paged pool memory or Nonpaged pool memory ?? (windows driver development)

Hi all, I am newbie in windows driver development. I just want to know , a global variable in a driver will use paged pool memory or non paged pool memory ? Thanks and Regards Navaneeth ...

suggest any tutorial or ebooks for Driver development in windows (NDIS)?

Hi guys, i wanna write Driver for my network adapter .For the suggest any e books or online tutorial for Driver development? ...

how to dump (print) an OSDictionary to the console / log?

I would like to inspect the contents of an OSDictionary from my kext. is there a convenient way to print the contents to system.log or similar? (ala CFShow()) ? thx->adv, |K< ...

what are essential requirements for writing kernel for microsoft windows

what should i learn as a programmer to write kernel like microsoft windows i know c and c++ but what should i do to write kernel is it necessary to know basics of kernel programming of linux how to become expert in both linux and windows kernel prograaming ...

Hardened BSD from Scratch

I am aware of the Hardened Linux from Scratch project which is a project that provides you with step-by-step instructions for building your own customized and hardened Linux system entirely from source. I would like to know what is the equivalent in BSD? ...

What is preemption / What is a preemtible kernel? What is it good for?

Explained in your own words, what is preemption and what does it mean to a (linux) kernel? What are advantages and disadvantages in having a preemptible kernel? ...

Why I need to re-compile vmware kernel module after a linux kernel upgrade?

After a linux kernel upgrade, my VMWare server cannot start until using vmware-config.pl to do some re-config work (including build some kernel modules). If I update my windows VMWare host with latest Windows Service Pack, I usually not need to do anything to run VMWare. Why VMWare works differently between Linux and Windows? Does this...

How to get a list of open sockets in Linux using C?

Hello, Is there a way to get a list of all open sockets ( socket address or socket descriptor ) in Linux using C in user-space or kernel? Thank you ...

Time Stamp counter (TSC) when switching between Kernel & User mode

Hi I am wondering if somebody knows some more details about the time stamp counter in Linux when a context switch occurs? Until now I had the opinion, that the TSC value is just increasing by 1 during each clock cycle, independent if in kernel or in user mode. I measured now the performance of an application using the TSC which yielded ...

kernel mode driver write to file

Hi, I am working on a windows keyboard filter driver and I need to write to a file. I tried using zwcreate,zwwrite, and zwclose but the driver is not running at PASSIVE_LEVEL and I got the BSOD. I have never written a windows driver before. Thanks for the help! EDIT: Thanks J. Passing! ...

Building a custom BSD version that supports only Java

What is the process I should use to accomplish the goal of building a version of FreeBSD that is capable of running a Java VM but not capable of any other functionality including, but not limited to: Running any process other than the Java VM Disabling any/all shell access When the Java VM exits, the OS shuts down I need to support J...