cvs commit: src/sys/kern imgact_resident.c src/sys/sys resident.h src/usr.sbin/resident resident.8 resident.c

Hiten Pandya hmp at crater.dragonflybsd.org
Thu Jun 3 09:29:09 PDT 2004


hmp         2004/06/03 09:28:15 PDT

DragonFly src repository

  Modified files:
    sys/kern             imgact_resident.c 
    sys/sys              resident.h 
    usr.sbin/resident    resident.8 resident.c 
  Log:
  VM Resident Executables update:
  
  Kernel Part:
  
  	* decrement the exec_res_id counter in exec_sys_unregister, otherwise
  	  we will have an incorrect count of currently resident executables.
  
  	* add a structure called 'xresident' which stores enough information
  	  about resident executables, so that we can export it to userland
  	  via sysctl; the structure resides in sys/resident.h.
  
  	* add a sysctl node, called 'vm.resident' which enumerates though
  	  exec_res_list, i.e., the queue which stores information about the
  	  executables that are currently resident
  
  	* move the exec_res_list queue initialization and a MALLOC_DEFINE
  	  near the top of the file, right after the include files; and also
  	  initialize the exec_res_id counter to '0'.
  
  	NOTE! The 'vm.resident' sysctl node is only available to root!
  
  Userland Part:
  
  	* add a '-l' option to resident(8), so that it displays the list
  	  of executables that are currently memory-resident.
  
  	* update the program usage string so that it is in par with the
  	  functionality offered by the program.
  
  	* update the manual page.
  
  Requested-by:   	many...
  
  Discussed-with: 	Matthew Dillon <dillon at xxxxxxxxxxxxx>
  
  Revision  Changes    Path
  1.3       +92 -6     src/sys/kern/imgact_resident.c
  1.3       +8 -0      src/sys/sys/resident.h
  1.3       +4 -1      src/usr.sbin/resident/resident.8
  1.5       +61 -2     src/usr.sbin/resident/resident.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/imgact_resident.c.diff?r1=1.2&r2=1.3&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/sys/resident.h.diff?r1=1.2&r2=1.3&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.sbin/resident/resident.8.diff?r1=1.2&r2=1.3&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.sbin/resident/resident.c.diff?r1=1.4&r2=1.5&f=h





More information about the Commits mailing list