From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 27 19:40:26 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 D875116A402 for ; Fri, 27 Apr 2007 19:40:26 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.229]) by mx1.freebsd.org (Postfix) with ESMTP id 954A613C45B for ; Fri, 27 Apr 2007 19:40:24 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so1001547wra for ; Fri, 27 Apr 2007 12:40:23 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fLGPEjpXoO+eslFm9XwtWh6OYPvXIz8GcgbUb2oKN8+ktkCG3wuLAdZE+Gt2dsQAffm+ize+scmg+WaHsBjdFFhcN+CQAe7r2sb3uoS1Wb08DCQ5j/ceqTXSSBr3QVxWcR+nglnzysu9Y+/Xd6b+xLu6sbMBaXdse2+wDo61EJg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sxx9lJvKXokNnPhTzIbW7voPAcu5gFs1LOAYInBfaVhgrXON3pZA9ICAqCR6AYzzRmO79SzzJouXiT7dbDOP+A/EEGkR9IvyK/h/ghsfs5uAHeqr7e94A3LJ46Kl+4yEVl3uZwh2wr0Hw6pdK3FjNQmNZHquAwQFeX9SiD/kA2o= Received: by 10.78.146.11 with SMTP id t11mr1105483hud.1177701253606; Fri, 27 Apr 2007 12:14:13 -0700 (PDT) Received: by 10.78.107.4 with HTTP; Fri, 27 Apr 2007 12:14:13 -0700 (PDT) Message-ID: Date: Fri, 27 Apr 2007 12:14:13 -0700 From: "Kip Macy" To: "John Baldwin" , "=?ISO-8859-1?Q?Marc_L=F6rner?=" , freebsd-hackers@freebsd.org In-Reply-To: <200704271151.54720.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200704261408.19885.marc.loerner@hob.de> <200704261349.35661.jhb@freebsd.org> <200704270843.16908.marc.loerner@hob.de> <200704271151.54720.jhb@freebsd.org> Cc: Subject: Re: Usage of kern_* functions in kernel 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: Fri, 27 Apr 2007 19:40:26 -0000 For core files and checkpoints that isn't possible. -Kip On 4/27/07, John Baldwin wrote: > On Friday 27 April 2007 02:43:16 am Marc L=F6rner wrote: > > On Thursday 26 April 2007 19:49, John Baldwin wrote: > > > On Thursday 26 April 2007 08:08:19 am Marc L=F6rner wrote: > > > > Hello, > > > > I googled but found nothing about the usage of the kern_* functions > > > > (kern_open, kern_close, kern_pwritev, kern_preadv) that are located= in > > > > vfs_syscalls.c > > > > > > > > When I use kern_open to open a file within the kernel, I get an err= or. > > > > When I use the normal vn_open function instead, all works well. > > > > > > > > So my question is which functions are recommended by you > kernel-hackers > > > > for use within kernelspace? > > > > > > > > And here a second question: Is it possible to open/use the console > driver > > > > in kernelspace within the functions mentioned above? > > > > If not, can you give me some pointers on where I can find this > > > > information! > > > > > > kern_XXX are generally used by system calls such as alternative ABIs, > etc. > > > > so, you would recommend using the vn_* functions instead? > > In general userland should open files rather than the kernel. > > -- > John Baldwin > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " >