当目录更改时如何在 Solaris 10 中使用事件通知?

发布于 2024-09-03 16:42:01 字数 562 浏览 12 评论 0原文

我读了 Robert Benson 的文章“Solaris 操作系统的事件完成框架”在 ECF 上。

我还阅读了 Solaris 手册页,但他们不太清楚如何使用目录的事件通知。 例如,如果我将新文件添加到目录中,我希望收到该事件的一些通知。

我发现“文件事件通知”其中包含我需要的内容,但它适用于 Solaris 11 ,尚未上市。

基于“事件端口和性能”,我不想使用轮询,因为我想获得事件的性能优势。

任何建议都将受到高度赞赏!

I read Robert Benson's article "The Event Completion Framework for the Solaris Operating System" on ECF.

I also read the Solaris man pages but they are not very clear of how to use event notifications for directories.
For example, if I add a new file into a directory, I would like to get some notification of that event.

I found "File Events Notification" which has what I need but it is for Solaris 11, which is not in the market yet.

Based on "Event ports and performance", I don't want to use poll because I want to get the performance advantage of events.

Any suggestion is highly appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

溺孤伤于心 2024-09-10 16:42:01

事件端口是一种通用机制,不特定于文件或目录更改。

在 NV build 72(Solaris 10 发布之后)之前,不支持为文件或目录更改生成这些事件。

Event ports are a generic mechanism not specific to file or directory changes.

There wasn't support to generate these events for file or directory changes until NV build 72 (after Solaris 10 was released).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文