Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Nov 2012 21:22:52 -0500
From:      Daniel Eischen <eischen@vigrid.com>
To:        Alfred Perlstein <bright@mu.org>
Cc:        "attilio@freebsd.org" <attilio@freebsd.org>, Mark Linimon <linimon@lonesome.com>, Oleksandr Tymoshenko <gonzo@bluezbox.com>, "arch@freebsd.org" <arch@freebsd.org>
Subject:   Re: [RFC] sema_wait_sig
Message-ID:  <CD4350B2-40E3-4964-B403-78825A00C75A@vigrid.com>
In-Reply-To: <50B17BF7.7020609@mu.org>
References:  <20121124193010.GB1627@lonesome.com> <50B12520.7040508@mu.org> <CAJ-FndBeLvsgXQ4fskRwdZh2qaWbn7-LrCOmJTjPcfnbmD7aYg@mail.gmail.com> <50B145C5.8070503@mu.org> <CAJ-FndC%2BjHO2uKg%2Bd8GmzWGkQ8nZ6_iefgyGAeno0VqprR84Wg@mail.gmail.com> <50B16E7A.60900@mu.org> <CAJ-FndAetPqiZ0nCQTY1xAcqBJuuaq9dZfUhP9YXXw669o0WNQ@mail.gmail.com> <50B178A3.4070305@mu.org> <46D582BB-1EB9-4080-9733-7558D6D87FA8@bsdimp.com> <50B17BF7.7020609@mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Nov 24, 2012, at 9:01 PM, Alfred Perlstein <bright@mu.org> wrote:

> On 11/24/12 5:56 PM, Warner Losh wrote:
>> On Nov 24, 2012, at 6:47 PM, Alfred Perlstein wrote:
>>=20
>>>=20
>>> 1) compat layer
>>> /usr/src.local/sys/ofed/drivers/infiniband/core #
>>> cddl/contrib/opensolaris
>>>=20
>>> 2)
>>> if a user expects semaphores and we tell them to "rethink" things, then w=
e're not providing the same facilities as every other non-BSD OS.
>>>=20
>>> I guess that makes us "cool", but really it just seems out of touch.
>>>=20
>>> The implementation is 176 lines of code + some headers.
>>>=20
>>> The sad part to me is that the original user asked "hey I need sema+sign=
al" but we don't know the facility they really need, count of 1?  count of 1=
0? instead of just giving them a textbook CS semaphore we tell them to "buil=
d your own using our primitives".
>> You don't need stdio, you can build it from the syscall primitives...
>=20
> Dude, don't make me replace string.h/strncpy/strlcpy with sbuf_(9), cause I=
 will!

Can we please chill?  We're not talking about getting rid of a commonly used=
 API with sema(9).  We want to do what is right for FreeBSD, not Linux.  Tha=
t's not to say we can't have a Linux kernel compat shim or something, but th=
ey should be hidden accordingly and not used by native drivers and such.  We=
 definitely don't want every API for every OS, or we will become an amalgama=
tion of those OSs.

--
DE=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CD4350B2-40E3-4964-B403-78825A00C75A>