Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 ECF 上阅读了 Robert Benson 的文章“ Solaris 操作系统的事件完成框架”。
我还阅读了 Solaris 手册页,但它们不太清楚如何对目录使用事件通知。例如,如果我将一个新文件添加到一个目录中,我想获得该事件的一些通知。
我找到了“文件事件通知”,它有我需要的东西,但它适用于尚未上市的 Solaris 11。
基于“事件端口和性能”,我不想使用轮询,因为我想获得事件的性能优势。
任何建议都非常感谢!
事件端口是一种通用机制,并非特定于文件或目录更改。
在 NV build 72(在 Solaris 10 发布之后)之前,不支持为文件或目录更改生成这些事件。