Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2013 16:53:06 -0700
From:      Yuri <yuri@rawbw.com>
To:        current@freebsd.org
Cc:        Roman Divacky <rdivacky@freebsd.org>, John-Mark Gurney <jmg@funkthat.com>
Subject:   Re: How to best overload the fileops ?
Message-ID:  <521552E2.2000008@rawbw.com>
In-Reply-To: <20130821232113.GD94127@funkthat.com>
References:  <521508F4.6030502@rawbw.com> <20130821232113.GD94127@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/21/2013 16:21, John-Mark Gurney wrote:
> How did this memory get allocated in the first place?  Why does it need
> to be free'd in fo_close and not another location?

It is allocated by the epoll module right after kqueue object is created 
and is attached to the opaque field in the file object.
And it should be deallocated when this fd is closed, hence fo_close.

Yuri



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