Why does the Linux kernel repository have only one branch? [closed]

Mainline kernel First of all: don’t use that github link (it’s just a mirror). The actual repositories are located at kernel.org. You probably want to use Linus Torvalds’ tree, which is torvalds/linux.git. It’s called mainline kernel, which means this tree is the one where actual development of next kernel version is happening. Although it has … Read more

Handling ARM TrustZones

http://infocenter.arm.com/help/topic/com.arm.doc.prd29-genc-009492c/index.html is a pretty good introductory document that gives an overview of something a little bit too complex to be satisfactorily explained by typing into a text box. But I’ll try to answer your direct questions below. It refers to an additional privilege option orthogonal to the execution modes. Secure world has the ability to … Read more

mmap, msync and linux process termination

I found a comment from Linus Torvalds that answers this question http://www.realworldtech.com/forum/?threadid=113923&curpostid=114068 The mapped pages are part of the filesystem cache, which means that even if the user process that made a change to that page dies, the page is still managed by the kernel and as all concurrent accesses to that file will go … Read more

proc_create() example for kernel module

This example will create a proc entry which enables reading access. I think you can enable other kinds of access by changing the mode argument passed to the function. I haven’t passed a parent directory because there is no need to. The structure file_operations is where you setup your reading and writing callbacks. struct proc_dir_entry … Read more

Difference between ZRAM and ZSWAP

zram Status: Available in mainline kernel as of version 3.14 (March 2014) Implementation: compressed block device, memory is dynamically allocated as data is stored Usage: Configure zram block device as a swap device to eliminate need for physical swap defice or swap file Benefits: Eliminates need for physical swap device. This beame popular when netbooks … Read more