kernel
How to distinguish USB and (S)ATA device in the kernel scsi_device structure?
According to the kernel structure struct scsi_device used by SCSI drivers (kernel 2.6.23): http://lxr.linux.no/linux+v2.6.23/include/scsi/scsi_device.h#L49[详细]
2023-04-12 20:27 分类:问答How much data can be fetched by submit_bio() at a time
Here is my LAN structure I want to download a .zip file of 258.6MB from the samba server, meanwhile, start a profiling for the router\'s linu开发者_如何转开发x stack just before the download.[详细]
2023-04-12 19:31 分类:问答in what condition phys_base is not 0?
phy开发者_C百科s_base is referenced in kernnel source code __phys_addr() arch/x86/mm/physaddr.c and crash also use it as a machine dependent parameter e.g. --machdep phys_base=0x200000[详细]
2023-04-12 16:10 分类:问答Linux driver access through sysfs
I\'m making a small kernel module to provide user-space access to some kernel-mode only features of an ARMv7 chip (specifically, cache control). I\'m reading through Linux Device Drivers by Corbet, Ru[详细]
2023-04-12 11:20 分类:问答A process's files, the relation between files in mm_struct and files_struct?
In task_struct, we can find there are: struct mm_struct *mm, *active_mm; struct files_struct *files; files_struct contains pointers to up to 256 file data structures, each one describing a file being[详细]
2023-04-12 10:08 分类:问答How to keep thread on processor till an event happens?
I am spawning few threads inside ioctl call to my driver. I开发者_如何学JAVA am also assigning kernel affinity to my driver. I want to ensure one of the thread does not get scheduled out till a partic[详细]
2023-04-12 09:11 分类:问答Is it possible to "wake up" linux kernel process from user space without system call?
I\'m trying to modify a kernel module that manages a special hardware. The user space process, performs 2 ioctl() system calls per milliseconds to talk with the module. This doesn\'t meet my real.time[详细]
2023-04-12 08:43 分类:问答Understanding #define #ifdef and Macros in the Linux Kernel
I have just started work on auditing the Linux kernel and I cant help but notice in the source code the multitude of #defines and #ifdefs. I cant seem to understand exactly how these are being used. I[详细]
2023-04-12 05:28 分类:问答Is Virtual memory really useful all the time?
Virtual memory is a good concept currently used by modern operating systems. But I was stuck answering a question and was not sure enough about it. Here is the question:[详细]
2023-04-12 04:07 分类:问答request_threaded_irq() is used in the driver why not request_irq()? What are the differences between two?
I posted this is the thread which discussed about request_threaded_irq but I did not get any reply. So I am posting it freshly.[详细]
2023-04-11 22:43 分类:问答