I\'ve been writing a device dev/my_inc that\'s meant to take a positive integer N represented as an ASCII string, and store it internally. Any read from the device should produce the ASCII string repr
First time poster, so please excuse any stupidity. I\'m working on porting a custom CPLD driver on a linux kernel built for an MPC83xx from 2.6.22 to 2.6.26, and am receiving an unexpected Oops. The
I\'m modifying the Linux kernel and am trying to find where in the kernel source blocks of data are physically written to disk partitions such as ubd0. Where does this occur in kernel source? The actu
Is there smth like pthread_barrier in SMP Linux kernel? When kernel works simultaneously on 2 and more开发者_StackOverflow中文版 CPUs with the same structure, the barrier (like pthread_barrier) can b
How can I get page faults statistics from kernel for my application while it is running? What about other events, like inter-cpu migrations count in SMP nodes, or number of context swit开发者_JS百科ch
I want to use setitimer() (or less probable, the alarm()) in multithreaded process in linux 2.6+ with NPTL-enabled libc. Which thread will receive 开发者_开发问答sigalarm (SIGALRM) from kernel?
On an SMP machine we must usespin_lock_irqsave and not spin_lock_irq from interrupt context. Why would we want to save the flags (which contain the IF)?
I have found several examples online where we can create a proc file, assign read and write methods that are called every time the proc file is opened for read or written to.
Is there any protection provided by kernel? Because when we tried to allocate memory using an malloc() from 开发者_如何转开发user space, the kernel allowed to allocated around 124
I copy and paste code from this URL for creating and reading/writing a proc file using a kernel module and get the error that proc_root is undeclared. This same example is on a few sites so I assume i