Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2013 18:06:37 +0100
From:      Paul "LeoNerd" Evans <leonerd@leonerd.org.uk>
To:        Eugen-Andrei Gavriloaie <shiretu@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Managing userland data pointers in kqueue/kevent
Message-ID:  <20130513180637.6ff6b7d6@shy.leonerd.org.uk>
In-Reply-To: <CCE4FFC4-F846-4F81-85EE-776B753C63C6@gmail.com>
References:  <CCE4FFC4-F846-4F81-85EE-776B753C63C6@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/QkKqArvT/PY+r3oxcIAmFBv
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Mon, 13 May 2013 18:19:43 +0300
Eugen-Andrei Gavriloaie <shiretu@gmail.com> wrote:

> I'm pretty sure this user data pointer is also breaking a well known
> pointer management paradigm, but I just can't remember which.
> Regardless, it has all the ingredients for memory leaks and/or, the
> worst one, use of corpse pointers which are bound to crash the app. I
> agree, C/C++ is not for the faint of heart, but with little or close
> to no efforts, his EV_FREEWATCH can be put to very good use, and user
> space code not only becomes less prone to mem issues, but also
> cleaner.
>=20
> To summarise, +1 for the EV_FREEWATCH. I simply love the idea! Clean
> and very very efficient.

I actually developed the idea a little further and put some notes on
implementation/etc here in this PR:

  http://www.freebsd.org/cgi/query-pr.cgi?pr=3D153254

I don't think anyone has looked at it though.

If anyone were to just say "yes" and explain how to start developing a
kernel feature, I'm sure I'd be happy to look into it.

--=20
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/

--Sig_/QkKqArvT/PY+r3oxcIAmFBv
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlGRHZ0ACgkQvLS2TC8cBo2uugCfdivAovpEzmx4Lb9cFzOkycFC
XGQAoPwS4/JFhOn8ktJhU8Z5jVaqUKm6
=Meuq
-----END PGP SIGNATURE-----

--Sig_/QkKqArvT/PY+r3oxcIAmFBv--



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