Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2008 22:29:18 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        Rick Hunnicutt <rk_hunnicutt@yahoo.com>, freebsd-arch@freebsd.org
Subject:   Re: fdclone KPI
Message-ID:  <20080409192918.GM21209@deviant.kiev.zoral.com.ua>
In-Reply-To: <200804091125.46505.jhb@freebsd.org>
References:  <321309.94192.qm@web37604.mail.mud.yahoo.com> <20080409040144.GK21209@deviant.kiev.zoral.com.ua> <200804091125.46505.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--mHEGYOlXWdrdotU2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Apr 09, 2008 at 11:25:46AM -0400, John Baldwin wrote:
> On Wednesday 09 April 2008 12:01:44 am Kostik Belousov wrote:
> > On Tue, Apr 08, 2008 at 04:09:30PM -0700, Rick Hunnicutt wrote:
> > > I'm curious if someone can tell me why the fdclone KPI was not includ=
ed in=20
> the 7.0 release?
> >=20
> > Because it got no
> > - review;
> > - interest from the driver authors;
> > - agreement that this is the way to go.
>=20
> Oof, where is the patch?  I think it is definitely easier for people to u=
se=20
> than devfs cloning when all that is needed is per-instance data.  I would=
 use=20
> it in the ipmi(4) driver and the nvidia graphics driver would likely pref=
er=20
> it to devfs cloning as well.

http://people.freebsd.org/~kib/misc/fdclone.10.patch
http://people.freebsd.org/~kib/misc/fclone.c

The patch was developed before the struct file becomes lockless. The link
above contains the mechanically updated patch, that was given one
smoke-test run.

fclone.c is the trivial driver that utilizes the new KPI.

--mHEGYOlXWdrdotU2
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (FreeBSD)

iEYEARECAAYFAkf9GQ4ACgkQC3+MBN1Mb4h2qwCfeH2LW+5dlHxQWfFzSfdj/xxm
4dkAoNhN81b8UJtO+uTLCjY4ZDkl+Rwu
=vUHo
-----END PGP SIGNATURE-----

--mHEGYOlXWdrdotU2--



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