From owner-freebsd-threads@FreeBSD.ORG Fri Oct 21 14:20:54 2005 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A17FB16A41F for ; Fri, 21 Oct 2005 14:20:54 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3124143D45 for ; Fri, 21 Oct 2005 14:20:54 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.5/8.13.5/NETPLEX) with ESMTP id j9LEKqme020719; Fri, 21 Oct 2005 10:20:52 -0400 (EDT) Date: Fri, 21 Oct 2005 10:20:52 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Konstantinos Boukis In-Reply-To: <1129901893.4358ef45d0632@impmail.kcl.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-threads@freebsd.org Subject: Re: kernel upcall documentation X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2005 14:20:54 -0000 On Fri, 21 Oct 2005, Konstantinos Boukis wrote: > Hello, > I am not quite sure whether this is the correct list, my problem is that I want > to send an upcall from the kernel to userland to load a module (kernel threads > cannot call linker_load_module since they do not have a valid fd_cdir). Is > there any document describing how to make an upcall from the kernel to > userland? This is not how you want to do it. Do it the old fashioned way, with a read() or ioctl() from userland that blocks until the kernel is ready to have the module loaded. -- DE