I have a device driver module which does a register_chardev(). In the driver open() function I wish to be able to determine the pid or pgid of the process which is attempting to open the device node.
On the command line this can be found out using the \'free\' utility and \'cat /proc/meminfo\'. What would be the different ways to find out the physical RAM size in Linu开发者_C百科x programatically
How can I know if the standard kernel开发者_StackOverflow社区 provided in my linux flavour has got DEBUG KERNEL ENABLED flags selected or not ??
I was reading the LK开发者_开发知识库MPG ( See Section 4.1.4. Unregistering A Device ) and it wasn\'t clear to me when to use the try_module_get / module_put functions.Some of the LKMPG examples use t
A linux machine freezes few hours after booting and runnin开发者_如何学编程g software (including custom drivers). I\'m looking a method to debug such problem. Recently, there has been significant prog
I\'d like to be able to diff files / directories directly from the Linux Kernel GIT repository without having to download full source.
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
According to the list of API changes in the 2.6 kernel series on LWN the .owner field of struct proc_dir_entry was removed in the 2.6.30 Kernel.
I am writing a kernel module and need to perform reads from an existing block device. (/dev/something).
Apache\'s worker MPM creates multiple threads per process, where each thread handles a request.As of 2.6, the Linux kernel uses Native POSIX Threading Library, which has a 1:1 threading model. Given t