Which C version is used in the Linux kernel?

As of Mon 2022-09-19, the Linux kernel is typically compiled with gcc -std=gnu11, which supports the GNU dialect of the 2011 edition of the ISO C standard. Reference: https://www.kernel.org/doc/html/latest/process/programming-language.html The kernel is written in the C programming language. More precisely, the kernel is typically compiled with gcc under -std=gnu11: the GNU dialect of ISO C11. … Read more

Difference between KVM and LXC

Text from https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/7-Beta/html/Resource_Management_and_Linux_Containers_Guide/sec-Linux_Containers_Compared_to_KVM_Virtualization.html Copyright © 2014 Red Hat, Inc.: Linux Containers Compared to KVM Virtualization The main difference between the KVM virtualization and Linux Containers is that virtual machines require a separate kernel instance to run on, while containers can be deployed from the host operating system. This significantly reduces the complexity of container creation … Read more

How to compile dts Linux device tree source files to dtb?

Device trees do not need to be compiled with “architecture-aware” tools. The dtc compiler on your ubuntu machine is probably current enough to compile your device tree. Or you can download the latest source and compile it yourself. The dtc compiler can be found here: https://git.kernel.org/pub/scm/utils/dtc/dtc.git There are some good documents in that package that … Read more

How does the linux kernel manage less than 1GB physical memory?

Not all virtual (linear) addresses must be mapped to anything. If the code accesses unmapped page, the page fault is risen. The physical page can be mapped to several virtual addresses simultaneously. In the 4 GB virtual memory there are 2 sections: 0x0… 0xbfffffff – is process virtual memory and 0xc0000000 .. 0xffffffff is a … Read more

How does Linux Kernel know where to look for driver firmware?

From the kernel’s perspective, see /usr/src/linux/Documentation/firmware_class/README: kernel(driver): calls request_firmware(&fw_entry, $FIRMWARE, device) userspace: – /sys/class/firmware/xxx/{loading,data} appear. – hotplug gets called with a firmware identifier in $FIRMWARE and the usual hotplug environment. – hotplug: echo 1 > /sys/class/firmware/xxx/loading kernel: Discard any previous partial load. userspace: – hotplug: cat appropriate_firmware_image > \ /sys/class/firmware/xxx/data kernel: grows a buffer in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)