Re: Unix-domain sockets - abstract addresses

From: Keith Owens (kaos@ocs.com.au)
Date: Fri Aug 09 2002 - 20:35:04 EST


On Fri, 09 Aug 2002 18:05:00 -0700 (PDT),
"David S. Miller" <davem@redhat.com> wrote:
> --- linus-2.5/net/unix/af_unix.c Mon Aug 5 12:02:05 2002
> +++ thunder-2.5/net/unix/af_unix.c Fri Aug 9 16:28:36 2002
> @@ -79,6 +79,8 @@
> * with BSD names.
> */
>
> +#undef unix /* KBUILD_MODNAME */
> +
>
>Explain to me what this giblet is for?

Rusty's plan to standardize boot and module parameters needs the
overall "module name" in the code, whether the code is built in or a
module. KBUILD_MODNAME defines the overall module name based on the
linkage data.

Sometimes KBUILD_MODNAME is used quoted, sometimes it is used unquoted.
We can quote it easily (__stringify) but AFAIK there is no way in cpp
to strip quotes from a string, so KBUILD_MODNAME has to be passed as a
bare word, without quotes.

af_unix.c is linked into unix.o so we have -DKBUILD_MODNAME=unix. Alas
we also have -Dunix=1. __stringify(KBUILD_MODNAME) -> __stringify(unix) ->
"1" instead of "unix".

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:21 EST