本文介绍: 这个和网卡eventnotify是一样的逻辑内核看到什么事情发生,可以通知用户然后用户可以根据自己需求做一些处理。第一次看到记录一下算是可以日后可以用到功能

这个和网卡event-notify是一样的逻辑内核看到有什么事情发生,可以通知用户然后用户可以根据自己的需求做一些处理。第一次看到,记录一下算是可以日后可以用到功能
man inotify

inotifymonitoring filesystem events
描述: The inotify API provides a mechanism for monitoring filesystem events. Inotify can be used to monitor individual files, or to monitor directories. When a directory is monitored, inotify will return events for the directory itself, and for files inside the directory.

The following system calls are used with this API:
* inotify_init(2) creates an inotify instance and returns a file descriptor referring to the inotify instance. The more recent inotify_init1(2) is like inotify_init(2), but has a flags argument that provides access to some extra functionality.

原文地址:https://blog.csdn.net/qq_36428903/article/details/134725984

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_29164.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注