[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lsmod count 一问



Chai Kov(tchaikov@sjtu.edu.cn)@2005.07.31 18:37:11 +0000:
> On Sun, Jul 31, 2005 at 06:16:04PM +0800, "肖盛文(Faris Xiao)" wrote:
> > man lsmod,info lsmod 我都找不到 “Used by” 
> > 的确切定义在哪里?
> > 
> > 唉!
> > 
> > 请问谁知道哪里有这个“Used by” 的确切定义 吗?
> 看看 Linux Device Drivers [0] 吧,在第三版(或者第二版)的第二章有关 module stacking
> 一节里简单介绍了相关的内容。在 tldp( http://www.tldp.org/LDP/tlk/modules/modules.html ) 也有说明。
> 
> [0] ldd3 和 ldd2 的电子版是开放下载的,http://lwn.net 上肯定有下载链接。

手头正好有 ldd2 就翻了一下。其中有使用计数(usage count)似乎和这个有关。

书中讲:为了确定模块是否能够安全卸载,系统为每个模块保留一个使用计数。因为在模块忙时不能卸载,所以系统需要这个信息来确定模块是否忙。

这么来看,那个模块的 Used by 为 0,
就表示目前该模块没有被使用(unused),可以卸载掉。
> -- 
> Regards,
> Tchaikov
> 2005.07.31 Sun
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

-- 
Jick Nan (nanjc#163.com) 			<http://www.freelamp.net>
=========================================================================
System Information:				<Thx: Reberto & Peter>
		  |  Debian Release: 3.1
	   ..	  |    APT prefers testing
	 ,'  `.   |    APT police: (500, 'testing')
	 : :' ;   |  Architecture: i386
	 `. `'    |  Kernel: Linux 2.6.10
	   `-     |  Locale: LANG=zh_CN.GB2312, LC_CTYPE=zh_CN.GB2312



Reply to: