【问题标题】:Is there any way I can list the inotify events supported by Linux Kernel?有什么方法可以列出 Linux 内核支持的 inotify 事件?
【发布时间】:2020-02-14 01:17:42
【问题描述】:

我需要特定版本的内核支持的 Inotify 事件列表。有没有办法找到事件列表?

或者我必须从内核版本支持的现有事件列表中假设? 例如:

- IN_ACCESS, IN_MODIFY, IN_CREATE, IN_DELETE... are supported by version 2.6.13
- IN_DONT_FOLLOW starts support from version 2.6.15+

有什么建议吗?

【问题讨论】:

    标签: linux filesystems kernel inotify


    【解决方案1】:

    您可以在源代码中找到它: https://github.com/torvalds/linux/blob/master/include/linux/inotify.h

    关于内核版本我不确定。如果您不需要自动化的方法,也许您可​​以搜索文件的历史记录:https://github.com/torvalds/linux/commits/master/include/linux/inotify.h

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-12-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-09
      相关资源
      最近更新 更多