Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Limit on kevent entries?




On Oct 12, 2006, at 12:02 PM, maurits <email@hidden wrote:


Dear darwin-dev list,

is there a limit on the number of files one can simultaneously
monitor with the kevent mechanism? Basically, I want to monitor if a
file has changed, for potentially hundreds or even thousands of
files.

kevent is not suitable for this.

Apart from the technique discussed in Amit's book, you might also want
to consider using the kauth FILEOP scope. This will require that you write
some kernel code and come up with a matching and queueing mechanism for
notifications that is efficient (because you are called on the hot path),
but it's a precise mechanism that is available in 10.4, and which was
developed for this specific reason.


There are other mechanisms in the pipeline that improve the developer
experience, but this is your best option for now.

 = Mike

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.