Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2007 12:24:51 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Biks N <freebsd.dev@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Using userland library in Kernel
Message-ID:  <20070808172451.GM77822@dan.emsphone.com>
In-Reply-To: <50cd4e5f0708080923p1d441e66ha6b42e277b55f8d@mail.gmail.com>
References:  <50cd4e5f0708080923p1d441e66ha6b42e277b55f8d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 08), Biks N said:
> I am new to FreeBSD kernel programming and I am trying to use
> userland library (zlib) in FreeBSD kernel. But I am not sure if zlib
> library is linkable from the kernel.

It isn't.  However, there is a zlib implementation in the kernel
already.  It's hidden under the PPP_DEFLATE kernel option (the source
is in sys/net/ppp_deflate.c).  The functions are all prefixed with z_,
but apart from that it works the same as userland zlib.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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