complete_init (void)
{
int result;
Result=register_chrdev (Complete_major,"complete", complete_fops);
if (result
return result;
if (complete_major==0)
Complete_major=result;
return 0;
}
void Complete_cleanup (void)
{
Unregister_chrdev (Complete_major,"complete");
}
Module_init (Complete_init);
Module_exit (Complete_cleanup);
Test steps:1, Mknod/dev/complete creates a complete node, and on Linux the driver needs to
When I used bcp to back up data yesterday, the following error is always prompted and only several large tables can be exported at a time. This made me very strange that I failed to try it several times in a row.
00: 00000: 00053: 2007/07/23 09:07:14. 25 kernel cannot send, host process disconnected: Linux 15871 SUID: 100: 00000: 00056: 2007/07/23 09:07:14. 37 kernel
(This chapter is based on: linux-4.4.0-37)
There are many ways to communicate between the kernel and user space, NetLink is one of them, and the others are/proc, IOCTL, sockopt, shared memory, and so on. NetLink is characterized by asynchronous Full-duplex.
NetLink uses 32-bit port addressing, called PID (not related to the process number), where the kernel's PID address is 0. The main characteristics of N
AsLinuxOperating System CoreKernelThe latest stable version 2.6.24 is available todayRelease. According to the description of the kernel newbies website, linux Kernel 2.6.24 improved CFS, added tickless support for x86-64, PPC, UML, arm, MIPS and other architectures, added wireless driver and configuration interface, introduced anti-fragmentation patch, enable th
Description of the processThe three main management functions of the operating system: process management, memory management, file systemTo manage the process, the kernel must have a clear description of each process, and the process descriptor provides the process information that the kernel needs to understand.Process Control block PCB task_struct: Process status, Process-open files, process priority info
Where does the kernel start execution? Almost any book on Linux kernel source code analysis will give detailed answers. However, I try to explain it from a different angle (a beginner's point of view), rather than giving the answer as soon as I come up. It is a common idea to start from familiar things and gradually approach unfamiliar things. Since they are all
Experimental processClone the corresponding mengning/menu.git on 1.github2. Test Menuos, test fork Direct execution results3. Configure debug system, go to gdb Debug, use file Linux-3.18.6/vmlinux and target remote:1234 to configure loading initial debugging environment4. Set breakpoints in the Linux kernel process to create the points that may be used, respectiv
Cause: A kernel Upgrade that causes the system to fail to boot.First enter the recovery mode: the boot interface Select-->ubuntu Advanced--and the options that appear, select the recovery mode that can be started (several kernel versions try each)--confirm that you can see a lot of options on the interface. Select the first recovery mode-->ok. (That's the way it is.)And then it went into the system. Here's
Introduction to the Kernel
Kernel, is the core of an operating system. It is responsible for managing the system's process, memory, device driver, file and network system, which determines the performance and stability of the system.linux is an important feature of the openness of its source code, all the kernel sour
After this period of time to learn, I also have a certain understanding of Linux, today this blog on the previous knowledge of a summary it.The previous Linux learning blog, from the top down is learning in-depth process, my blog link is as follows:First: Analysis of the Linux operating system how the computer starts and how it operatesChapter Two: Analysis of
HiSilicon latest out of an ultra-low memory chip hi3518ev201 (memory only 32M)In the development process of the kernel of the cutting test is quite large, of course HiSilicon also provides a reference to the cutting scheme "hi3518ev20x_mini_config.txt".However, it cannot be played exactly as the HiSilicon provides, because the kernel does not support USB, does not support frame buf, does not support Etherne
Transferred from: http://blog.chinaunix.net/uid-12461657-id-3487463.htmlOriginal address: A supplemental description of the interrupt stack and kernel stack in the Linux kernel MagicBoy2010interrupt stack and kernel stack topic is more of the core category, so in the "deep Linux
Http://hi.baidu.com/serial_story/blog/item/fcec44ec707dd5dd2e2e21ed.html
[Arrangement] functions such as atoi and ITOA in Linux Kernel
For common applications, You can include the header file stdlib. H, stdio. H, String. H, and so on, and then call the required functions such as ITOA () and atoi,
But for Linux kernel,
Hanks.wang-Focus on operating system and mobile security research. LINUX-KERNEL/SELINUX/SEANDROID/TRUSTZONE/ENCRIPTION/MDM Mail- [email protected]Bull X's kernel code gazeDaniel's code quality high stability, and logic clear legibility is stronger, today see the Linux kernel
Basic concepts
1. A linked list is a commonly used data structure that passes through pointers
Connect a series of data nodes into a single data chain.
Phase
For the array, the linked list has a better dynamic nature, and establishes
Linked list without prior knowledge of the total amount of data, you can randomly
Allocate space that can be efficiently in any bit of the list
Inserts or deletes data in real time.
2. The cost of the linked list is mainly
is the order of access and the loss of
Kernel Address Space Distribution
Direct ing zone: The maximum m range starting from 3G in a linear space. It is a direct memory ing zone. The linear address and physical address in this region have a linear conversion relationship: linear address = 3G + physical address.
Dynamic Memory ing area: This area is allocated by the kernel function vmalloc. It features linear space continuity, but the correspond
Adding a driver to the android kernel is actually adding a driver to the Linux kernel. It mainly adds vertex information to two files, one is the kconfig file and the other is the MAKEFILE file. For example, if the driver you added is placed in the xxx directory under the DRIVERS directory, the kconfig and makefile files under the directory will be repaired.
Spec
structure used by the kernel timer (different kernel timing events are connected in the form of a doubly linked list):struct Timer_list {struct list_head entry;//list header unsigned long expires;//delay time struct tvec_base *base;void (*function) (uns igned long); The target function is called unsigned Long data when the timing time arrives; The data that the target function carries ...};
Init_t
Loader to do two things, let's start with the first item, load the kernel into memory:1. Load the kernel into memory.2. Jump into protected mode.When you first compile a no-kernel:NASM Boot.asm-o Boot.binNASM Loader.asm-o Loader.binDD if=boot.bin of=a.img bs=512 count=1 conv=notruncsudo mount-o loop a.img/mnt/hgfs/sudo cp loader.bin/mnt/hgfs/-Vsudo umount/mnt/hgfs/The results of the operation are as follows
1, Linux kernel parameter setting and INITRAMFS generation2. Linux kernel compilation and installationFirst, review the start-up processpost--boot order (BIOS)--bootloader (MBR)--kernel+ramdisk--root switchover (footfs)--/sbin/init (config file) Profile: Set default RunLevel
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.