Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Nov 2006 23:09:39 +0200
From:      "Vlad Galu" <dudu@dudu.ro>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Kqueue write event position?
Message-ID:  <ad79ad6b0611221309q85e37e5p224ba93d0b9c9b5@mail.gmail.com>
In-Reply-To: <ek2ca4$sft$1@sea.gmane.org>
References:  <ek2ca4$sft$1@sea.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/22/06, Ivan Voras <ivoras@fer.hr> 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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>


-- 
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ad79ad6b0611221309q85e37e5p224ba93d0b9c9b5>