The File descriptors is an integer table memory-managed object that can be read and written by the process.A process can get the file descriptors by opening the files directory or device by creating a pipelineor copy an already existing
Article Title: Detailed description of the new file system change mechanism in Linux2.6 kernel. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research,
Inotify, a new file system change in Linux 2.6 kernel, is a file system change notification mechanism.
I. Introduction
As we all know, Linux desktop systems are much less satisfactory than Mac or windows. To improve this situation, the open-source
This article directory:1.1 Document Descriptor (file DESCRIPTION,FD)1.2 Copying of file descriptors1.3 Redirect Order is important: ">file 2>&1" and "2>&1 >file"1.4 Changing the redirect target for the current shell environment1.5 Closing file
Inotify-File System notification mechanism in the kernel, inotify-Kernel
Reprinted: http://www.ibm.com/developerworks/cn/linux/l-inotifynew/index.htmlI. Introduction
As we all know, Linux desktop systems are much less satisfactory than MAC or
Each run rsync command will traverse the target directory, when the file is not long, this is no problem, once the file number to a certain scale, then each traversal will consume a lot of resources, if only to the frequent changes in the directory
struct file (file struct):The struct file struct definition is defined in include/linux/fs.h. The file structure represents an open file, and each open file in the system has an associated struct file in the kernel space.It is created by the kernel
Name------------Fcntlint fcntl (int fd, int cmd, .../*arg*/)----------------The manipulate file descriptor/* action Descriptor */To include a header file:#include #include The function performs one of the operations described below on the open file
1. Problem Introduction
The I/O command set of UNIX systems evolved from COMMANDS IN Maltics and earlier systems, the mode is open-write-read-close ). When a user process performs an I/O operation, it first calls "open" to obtain the right to use
?12 binary io (binary io)In the previous article we learned about read-only and line-by-read functions.If we are reading and writing binary files, and want to read and write the entire file content, these two functions can be implemented, but it is
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.