Linux Kernel source Code Analysis-process management and scheduling
http://wenku.baidu.com/link?url=yzMjiwX-ZzlnYZgb8CKG5veDdv6_uTbweFpb0_ lpddf7xyilf4fimm4qcl5-0gsk6snu9krfuqvrzydbl0wlu8rhgilvfms_mpil0hrsb4m
Tasks for Process Management
. Allow a
Yum installation and uninstall
background
For some reason deleted the/usr/share in the Yum-plugins, Yum-cli folder, resulting in the Yum command invalidation, after discovery, the two folders imported from other virtual machines, but still missing
In this article, we analyze Input_register_handler, a very important function. As mentioned before, this is registered as a driver.
We go to the input directory to look at those file calls this function, respectively: EVDEV.C (Evdev Drive), JOYDEV.
Replace ^m characterUse VI to view some of the text files created under Windows under Linux, sometimes finding "^m" at the end of a line. There are several ways to handle this.
1. Use the Dos2unix command. This gadget is available in the general
Clear: Clean screen
Date: Show current date
Echo: Shows a date
DF: Displaying disk consumption
Free: Displays system memory usage, physical memory and swap memory
Uptime: Show how long the system has been running
Sync: Writes system memory
1. Use VM to install Centos6.0-sio image files, install Linux 32-bit system, kernel 2.6, set root password, install complete login system, open Terminal Command window. #uname-A View system version #gcc-v View gcc compiler version
#g + +-V view g++
Linux Driver Pen Test summary
The questions are taken from the network and used for the people. Recently in the study of Linux drivers, driving development in the written test when the knowledge points are the law to follow, and these pastries are
Thread
Mainly used to 3 functions, pthread_create (Create), Pthread_exit (exit), Pthread_join (Waiting to exit).
Examples are as follows:
/* example.c*/
#include
#include
void thread (void)
{
int i;
for (i=0;i
We compile this program:GCC
whether a string is contained in all files in the Linux lookup directory
Look for any file in the directory that contains a string find. | Xargs Grep-ri "IBM"Find out if any of the files in the directory contain a string, and only the file name is
pbcopy Command Cat Command locate command find command grep command tar command sed command shutdown command awk programming records and domain concepts commonly used
This article will not be introduced for commands that are too basic for LS,CD.
1, what is the kernel module.
The kernel module is a socket provided externally by the Linux kernel, which is called dynamically loadable kernel module (Loadable Kernel module,lkm) and is referred to as a module. The Linux kernel provides a modular
-not exactly, it needs to be perfected later. But I don't want to save a draft ...
Windows is end-user-oriented, and Linux is server-oriented, so the memory management mechanism is different.Windows starts swapping memory after memory usage exceeds 6
After the project is developed and deployed to the Linux environment, if its own platform does not provide log automatic backup functionality, then we may need to write a script and use the Linux crontab to do the scheduled cleanup and backup
Topic
Xiaoming is a server administrator, he needs to back up the forum data every day (here we use log substitution), back up the day's log and delete the previous log. And the file name is the year-month-day format after the backup.
Concepts for users and groups
Each user has a userid, the operating system actually uses the user ID, not the user name each user belongs to a primary group, and is restricted by resources accessible to that user each group has a GroupID each
#
Head --help
Usage: head [options] ... [File] ...
Displays the first 10 lines of each specified file to standard output.
if more than one file is specified, the filename is given as the file header before each segment of output.
If you do not
First, install OpenCV to Linux, there are the following steps:
1. Download the Linux version of the 2.4.9, address, and extract the Linux directory from the OPENCV website/root/soft/opencv-2.4.9
2. Run the following command to compile:
If you do
Because in the next level is quite limited, the improper place, also hoped that everybody criticizes the correction ^_^
Based on Linux 2.6.32The include\asm-generic\vmlinux.lds.h is defined as follows:This is tantamount to arranging a series of
The project needs to be packaged but just use the right key to the solution-"clean up, it is not clean."
Use this script instantly clean, useless folders can be manually deleted.
Copy Paste as Clean.bat file, copied to the engineering root directory,
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service