From owner-freebsd-fs@freebsd.org Thu Oct 1 16:55:50 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D40B2A0D780; Thu, 1 Oct 2015 16:55:50 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7A7881C99; Thu, 1 Oct 2015 16:55:50 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by wicge5 with SMTP id ge5so38996913wic.0; Thu, 01 Oct 2015 09:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=nj7tsj4O8fp49fZ/mFMnKJBcyN/muRij5Hwv2FMzjK8=; b=NoDDetovJHg2i3kzn5S/nAF3hvVWYJu6exy2kVP3eprlmRCQgUahF8+cJtpX4Db62t K4byfOKDRndCORXM9VFYoMD4ZUodT2cL0Ggx1Nfqf8U7aatNXIKFPUDF6CyOJRJuDg0O 6VNTpfWDAsgMG+aKpFvdkDu8p/u7xMVQOd6HW26okmFLjmsGjYcp82qylGmMRP2yOwkJ 8JBOBPqjWpCZAeEHvODgBCAC+znC0BjdDDGeIoOYHyohYxck+EjNsSj2gWE4NYq4mWxV Wvd1vYMLyfxgE/uJEEA3BundkEdMZx7tcQKrk5G1AVaqvqBIyjDxtyL/lftYXcUcMZW8 TlaA== X-Received: by 10.194.87.74 with SMTP id v10mr11148179wjz.114.1443718548976; Thu, 01 Oct 2015 09:55:48 -0700 (PDT) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by smtp.gmail.com with ESMTPSA id gl4sm7029588wjb.29.2015.10.01.09.55.47 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 01 Oct 2015 09:55:47 -0700 (PDT) Date: Thu, 1 Oct 2015 18:55:45 +0200 From: Mateusz Guzik To: Rakshith Venkatesh Cc: freebsd-fs@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: LibCURL in Kernel Message-ID: <20151001165545.GA7491@dft-labs.eu> Mail-Followup-To: Mateusz Guzik , Rakshith Venkatesh , freebsd-fs@freebsd.org, freebsd-hackers@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2015 16:55:50 -0000 On Thu, Oct 01, 2015 at 09:59:26PM +0530, Rakshith Venkatesh wrote: > Hi, > > I wanted to know if there is any library which does the job of libCURL in > FreeBSD kernel. I know libCURL is a user-space library but was looking for > something similar in kernel. Porting is one option but i think it surely > will not be a straight forward thing. > > Any leads on the above query would be great! > Well, libcurl provides a lot of features. I'm not aware of anything looking even like a simple http client even for Linux and I doubt someone created anything like it. The real question is why would you need such a feature. Handling it entirely in the kernel, while of course possible, likely has 0 benefits in your case. If you are not going to have a real root filesystem you can still fit a small http client on mdroot and use that. -- Mateusz Guzik