From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 22 21:32:18 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CFBD016A51E for ; Wed, 22 Nov 2006 21:32:18 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01F3F440D0 for ; Wed, 22 Nov 2006 21:15:56 +0000 (GMT) (envelope-from dudu@dudu.ro) Received: by nz-out-0102.google.com with SMTP id i11so204255nzh for ; Wed, 22 Nov 2006 13:16:03 -0800 (PST) Received: by 10.65.188.20 with SMTP id q20mr8061082qbp.1164229779965; Wed, 22 Nov 2006 13:09:39 -0800 (PST) Received: by 10.65.110.19 with HTTP; Wed, 22 Nov 2006 13:09:39 -0800 (PST) Message-ID: Date: Wed, 22 Nov 2006 23:09:39 +0200 From: "Vlad Galu" To: freebsd-hackers@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: Kqueue write event position? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Nov 2006 21:32:18 -0000 On 11/22/06, Ivan Voras 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.