Re: Kqueue write event position?
- From: "Vlad Galu" <dudu@xxxxxxx>
- Date: Wed, 22 Nov 2006 23:09:39 +0200
On 11/22/06, Ivan Voras <ivoras@xxxxxx> wrote:
>From the kqueue(2) manual:
"""
EVFILT_VNODE Takes a file descriptor as the identifier and the events
to watch for in fflags, and returns when one or more of
the requested events occurs on the descriptor. The
events
to monitor are:...
"""
I'm interested in NOTE_WRITE, but is there a way to find out where has
the write been performed (position and length)? If not, how difficult
would it be to expand the API so this information is included?
It seems to me you would have to propagate that info along the
VOP_WRITE_POST->VFS_KNOTE_LOCKED->VN_KNOTE->knote() chain. Since
knote() is generic and is used for all types of notifications, you can
probably roll down your own replacement and call it from VN_KNOTE. Of
course, there probably is a better way :)
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
--
If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's transparent.
If it's not there, and you can't see it, you erased it.
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Kqueue write event position?
- From: Ivan Voras
- Re: Kqueue write event position?
- References:
- Kqueue write event position?
- From: Ivan Voras
- Kqueue write event position?
- Prev by Date: Kqueue write event position?
- Next by Date: Anyone solved boot freebsd-elf image from u-boot now?
- Previous by thread: Kqueue write event position?
- Next by thread: Re: Kqueue write event position?
- Index(es):
Relevant Pages
- Kqueue write event position?
... EVFILT_VNODE Takes a file descriptor as the identifier and the events ... to
watch for in fflags, and returns when one or more of ... the requested events
occurs on the descriptor. ... (freebsd-hackers) - Re: Kqueue write event position?
... EVFILT_VNODE Takes a file descriptor as the identifier and the events ... to
watch for in fflags, and returns when one or more of ... As writes often come in batches,
it's likely that by the time the kevent is received, several writes will have occurred, but only a single
event notification will be present. ... Does it benefit in the presence of writes from concurrent
writers, where things like the position and length may depend on which of two or more writers wrote
to the file most or least recently? ... (freebsd-hackers)