From owner-freebsd-hackers@FreeBSD.ORG Mon May 21 11:06:46 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8AC0C16A480 for ; Mon, 21 May 2007 11:06:46 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.freebsd.org (Postfix) with ESMTP id 4A9DC13C447 for ; Mon, 21 May 2007 11:06:46 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so1815133pyh for ; Mon, 21 May 2007 04:06:45 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aDqBPjA6X8+2m1+djKoFjPfxF4xiaxCTqFv71JR0PXtH3XIwwGPLwZsbve3b2bZ7UqHmnBq35Ypb5aYFd/gOnjPnUXVMTYHuM+PU7JVlNAiQKgLSAdVAFc8K0Nd0+zeM0Sga8IgC7jDAlYXikgACxxke830NcKn6aS9Plj3U5sk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NA4gvCZdlx2vZPSkDw9MzCbzpRWKQpY6G8Ly8kiJ8EnauXNEFZDjmxBO8ZP42lRQiz8LCcNNsm01tj/mYoc3o09yVNfOs7q1qOBZkKj+mfkTDuoJsaHRM+PjoIRweI00nUlP4aLxbzJKqJHSTrCdnjKXlm/4b9jys83ZISplIjo= Received: by 10.65.43.5 with SMTP id v5mr10531867qbj.1179745605217; Mon, 21 May 2007 04:06:45 -0700 (PDT) Received: by 10.65.59.5 with HTTP; Mon, 21 May 2007 04:06:45 -0700 (PDT) Message-ID: <84dead720705210406s79da5cf7t753394d9374fd3f2@mail.gmail.com> Date: Mon, 21 May 2007 11:06:45 +0000 From: "Joseph Koshy" To: "=?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?=" In-Reply-To: <86646ugywf.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4649349D.4060101@room52.net> <86646ugywf.fsf@dwp.des.no> Cc: Lawrence Stewart , freebsd-hackers@freebsd.org Subject: Re: Writing a plain text file to disk from kernel space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2007 11:06:46 -0000 ls> So, I'm looking for a way to manually open up a file from within ls> kernel space and dump characters into it. des> Note that it opens the file in userland and passes it down to the des> kernel. You may want to consider a similar mechanism. hwpmc(4) takes a similar approach, using a dedicated kthread to to perform writes. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy