From owner-freebsd-hackers Tue Dec 8 02:33:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA10004 for freebsd-hackers-outgoing; Tue, 8 Dec 1998 02:33:22 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from Thingol.KryptoKom.DE (Thingol.KryptoKom.DE [194.245.91.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA09996 for ; Tue, 8 Dec 1998 02:33:20 -0800 (PST) (envelope-from Reinier.Bezuidenhout@KryptoKom.DE) Received: (from mail@localhost) by Thingol.KryptoKom.DE (8.8.7/8.8.4) id LAA14652 for ; Tue, 8 Dec 1998 11:33:18 +0100 Received: from cirdan.kryptokom.de by via smtpp (Version 1.1.1beta6) id kwa14646; Tue Dec 08 11:32:59 1998 Received: by Cirdan.KryptoKom.DE (8.8.5/8.8.5) with ESMTP id LAA12258 for ; Tue, 8 Dec 1998 11:28:27 +0100 Original: Received: (from bez@localhost) by borg.kryptokom.de (8.8.8/8.8.8) id LAA08899 for freebsd-hackers@freebsd.org; Tue, 8 Dec 1998 11:40:01 +0100 (CET) (envelope-from bez) From: Reinier Bezuidenhout Message-Id: <199812081040.LAA08899@borg.kryptokom.de> Subject: kernel and ioctl call to kernel function To: freebsd-hackers@FreeBSD.ORG Date: Tue, 8 Dec 1998 11:40:01 +0100 (CET) X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi ... We have implemented a funtion in the kernel that does some operations on data given to the function. This function can be called from within the kernel AND from user level via a ioctl call. What will happen if the kernel calls this function after the user level process also called this function via the ioctl or vice versa. Does the one wait for the other before the function is entered ??? I see some strange behaviour where the user level process never seems to hang (no characters are echo'd to the screen anymore, I can still swap vertual screens, but to character input and the num-lock still worlks :) ). The kernel call to this function, however, seems to continue working without any problem. How is this "simultanious" call to the same function handled ?? Thanx Reinier To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message