Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Aug 1998 12:00:10 -0500 (EST)
From:      Alfred Perlstein <bright@www.hotjobs.com>
To:        current@FreeBSD.ORG
Subject:   PEBCAK with modunload.
Message-ID:  <Pine.BSF.3.96.980821115106.305N-100000@bright.fx.genx.net>

next in thread | raw e-mail | index | archive | help

this might be fixed but i don't want to test it for obvious reasons.

if you unload the linux emulator while linux programs are running you will 
crash your box. (forgot i had x11amp running)

a nice thing would be an option to modunload to force an unload so it
would work something like this:

~ % modstat
Type     Id Off Loadaddr Size Info     Rev Module Name
MISC      0   0 f614c000 0018 f6151000   1 ibcs2_mod
EXEC      1   4 f6153000 0008 f6154000   1 ibcs2_coff_mod
EXEC      2   5 f6155000 0020 f615c010   1 linux_mod 

~ % modunload -i 3
Error: you have linux programs running. Specify -f to force.
 (list of pids/commands passed back somehow from the lkm)

~ % modunload -f -i 3
Killing all linux programs running.
(list of pids follow, then the lkm is unloaded)

btw i think PEBCAK = problem between chair and keyboard

the reason this would be nice is that you can get "inuse" errors and other
lkms can then refuse to unload unless told to forcfully do so.  They could
then revoke access to files/devices they control for other lkms such as
filesystem lkms and device lkms.

Alfred Perlstein - Programmer, HotJobs Inc. - www.hotjobs.com
-- There are operating systems, and then there's FreeBSD.
-- http://www.freebsd.org/                        3.0-current


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980821115106.305N-100000>