From owner-freebsd-hackers Wed Nov 7 4:11:58 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from utc.telenet.ru (utc.telenet.ru [212.23.74.140]) by hub.freebsd.org (Postfix) with ESMTP id 21BDA37B419 for ; Wed, 7 Nov 2001 04:11:55 -0800 (PST) Received: from stoodg.utc.telenet.ru (stoodg.utc.telenet.ru [192.168.0.22]) by utc.telenet.ru (8.11.6/8.11.6) with ESMTP id fA7CBrP28829 for ; Wed, 7 Nov 2001 17:11:53 +0500 Received: from localhost (max@localhost) by stoodg.utc.telenet.ru (8.11.6/8.11.6) with ESMTP id fA7CBne14936 for ; Wed, 7 Nov 2001 17:11:53 +0500 (YEKT) (envelope-from max@cca.usart.ru) X-Authentication-Warning: stoodg.utc.telenet.ru: max owned process doing -bs Date: Wed, 7 Nov 2001 17:11:49 +0500 (YEKT) From: Max Gotlib X-X-Sender: To: Subject: How to free TTY ? Message-ID: <20011107170418.Y14875-100000@stoodg.utc.telenet.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi! I'm busy with developing the character device driver for some hardware (Z85230 based serial board). I would like the driver to be loaded as KLD and I would like to be able to unload the module as well. I'm working under the FreeBSD-4.4r. I obtain the TTY structure on the first open() by means of ttymalloc(). How can I deallocate the memory on the device detachment ? (The ttyfree() function is commented out in /sys/kern/tty.c with appropriate message...) Thanks in advance, Max. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message