Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S270020AbUJHP26 (ORCPT ); Fri, 8 Oct 2004 11:28:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S270025AbUJHP2m (ORCPT ); Fri, 8 Oct 2004 11:28:42 -0400 Received: from mail3.iserv.net ([204.177.184.153]:26051 "EHLO mail3.iserv.net") by vger.kernel.org with ESMTP id S270020AbUJHP1o (ORCPT ); Fri, 8 Oct 2004 11:27:44 -0400 Message-ID: <4166B1F3.4020102@didntduck.org> Date: Fri, 08 Oct 2004 11:27:47 -0400 From: Brian Gerst User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Luke Kenneth Casson Leighton CC: linux-kernel@vger.kernel.org Subject: Re: how do you call userspace syscalls (e.g. sys_rename) from inside kernel References: <20041008130442.GE5551@lkcl.net> <41669DE0.9050005@didntduck.org> <20041008151837.GI5551@lkcl.net> In-Reply-To: <20041008151837.GI5551@lkcl.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 915 Lines: 28 Luke Kenneth Casson Leighton wrote: > On Fri, Oct 08, 2004 at 10:02:08AM -0400, Brian Gerst wrote: > >>Luke Kenneth Casson Leighton wrote: >> >>>could someone kindly advise me on the location of some example code in >>>the kernel which calls one of the userspace system calls from inside the >>>kernel? >>> >>>alternatively if this has never been considered before, please could >>>someone advise me as to how it might be achieved? >> >>What are you trying to do? > > > call sys_rename, sys_pread, sys_create, sys_mknod, sys_rmdir > etc. - everything that does file access. > Why? What are you trying to do that cannot be done in userspace? -- Brian Gerst - 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/