cvs commit: src/sys/kern lwkt_msgport.c lwkt_thread.c src/bin/ps keyword.c print.c src/lib/libkvm kvm_getloadavg.c src/sbin/vinum commands.c list.c src/sys/bus/cam/scsi scsi_da.c scsi_sa.c src/sys/dev/raid/vinum vinumhdr.h src/sys/sys globaldata.h lock.h ...

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Nov 21 14:46:38 PST 2003


dillon      2003/11/21 14:46:15 PST

DragonFly src repository

  Modified files:
    sys/kern             lwkt_msgport.c lwkt_thread.c 
    bin/ps               keyword.c print.c 
    lib/libkvm           kvm_getloadavg.c 
    sbin/vinum           commands.c list.c 
    sys/bus/cam/scsi     scsi_da.c scsi_sa.c 
    sys/dev/raid/vinum   vinumhdr.h 
    sys/sys              globaldata.h lock.h malloc.h msgport.h 
                         proc.h signalvar.h slaballoc.h thread.h 
                         thread2.h user.h 
    sys/vfs/ufs          inode.h 
    usr.bin/doscmd       doscmd.c 
    usr.bin/fstat        fstat.c 
    usr.bin/gcore        elfcore.c gcore.c md-sparc.c 
    usr.bin/ipcs         ipcs.c 
    usr.bin/ktrace       subr.c 
    usr.bin/systat       pigs.c vmstat.c 
    usr.bin/top          machine.c 
    usr.bin/vmstat       vmstat.c 
    usr.bin/w            proc_compare.c w.c 
  Log:
  Do some fairly major include file cleanups to further separate kernelland
  from userland.
  
      * Do not allow userland to include sys/proc.h directly, it must use
        sys/user.h instead.   This is because sys/proc.h has a huge number
        of kernel header file dependancies.
  
      * Do cleanups and work in lwkt_thread.c and lwkt_msgport.c to allow
        these files to be directly compiled in an upcoming userland thread
        support library.
  
      * sys/lock.h is inappropriately included by a number of third party
        programs so we can't disallow its inclusion, but do not include
        any kernel structures unless _KERNEL or _KERNEL_STRUCTURES are
        defined.
  
      * <ufs/ufs/inode.h> is often included by userland to get at the
        on-disk inode structure.  Only include the on-disk components and do
        not include kernel structural components unless _KERNEL or
        _KERNEL_STRUCTURES is defined
  
      * Various usr.bin programs include sys/proc.h unnecessarily.
  
      * The slab allocator has no concept of malloc buckets.  Remove malloc
        buckets structures and VMSTAT support from the system.
  
      * Make adjustments to sys/thread.h and sys/msgport.h such that the
        upcoming userland thread support library can include these files
        directly rather then copy them.
  
      * Use low level __int types in sys/globaldata.h, sys/msgport.h,
        sys/slaballoc.h, sys/thread.h, and sys/malloc.h, instead of
        high level sys/types.h types, reducing include dependancies.
  
  Revision  Changes    Path
  1.9       +6 -0      src/sys/kern/lwkt_msgport.c
  1.42      +57 -11    src/sys/kern/lwkt_thread.c
  1.9       +0 -1      src/bin/ps/keyword.c
  1.9       +0 -1      src/bin/ps/print.c
  1.3       +1 -2      src/lib/libkvm/kvm_getloadavg.c
  1.4       +2 -0      src/sbin/vinum/commands.c
  1.4       +2 -0      src/sbin/vinum/list.c
  1.10      +4 -0      src/sys/bus/cam/scsi/scsi_da.c
  1.8       +4 -0      src/sys/bus/cam/scsi/scsi_sa.c
  1.7       +2 -0      src/sys/dev/raid/vinum/vinumhdr.h
  1.21      +7 -4      src/sys/sys/globaldata.h
  1.7       +14 -3     src/sys/sys/lock.h
  1.15      +28 -69    src/sys/sys/malloc.h
  1.10      +6 -3      src/sys/sys/msgport.h
  1.37      +4 -0      src/sys/sys/proc.h
  1.10      +11 -0     src/sys/sys/signalvar.h
  1.5       +5 -10     src/sys/sys/slaballoc.h
  1.37      +28 -10    src/sys/sys/thread.h
  1.10      +9 -0      src/sys/sys/thread2.h
  1.12      +13 -1     src/sys/sys/user.h
  1.5       +8 -0      src/sys/vfs/ufs/inode.h
  1.3       +1 -2      src/usr.bin/doscmd/doscmd.c
  1.7       +0 -1      src/usr.bin/fstat/fstat.c
  1.3       +3 -1      src/usr.bin/gcore/elfcore.c
  1.6       +0 -1      src/usr.bin/gcore/gcore.c
  1.4       +0 -1      src/usr.bin/gcore/md-sparc.c
  1.5       +0 -1      src/usr.bin/ipcs/ipcs.c
  1.5       +0 -1      src/usr.bin/ktrace/subr.c
  1.8       +1 -1      src/usr.bin/systat/pigs.c
  1.6       +2 -1      src/usr.bin/systat/vmstat.c
  1.10      +0 -1      src/usr.bin/top/machine.c
  1.9       +10 -71    src/usr.bin/vmstat/vmstat.c
  1.4       +1 -1      src/usr.bin/w/proc_compare.c
  1.5       +0 -1      src/usr.bin/w/w.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/lwkt_msgport.c.diff?r1=1.8&r2=1.9&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/kern/lwkt_thread.c.diff?r1=1.41&r2=1.42&f=h
http://www.dragonflybsd.org/cvsweb/src/bin/ps/keyword.c.diff?r1=1.8&r2=1.9&f=h
http://www.dragonflybsd.org/cvsweb/src/bin/ps/print.c.diff?r1=1.8&r2=1.9&f=h
http://www.dragonflybsd.org/cvsweb/src/lib/libkvm/kvm_getloadavg.c.diff?r1=1.2&r2=1.3&f=h
http://www.dragonflybsd.org/cvsweb/src/sbin/vinum/commands.c.diff?r1=1.3&r2=1.4&f=h
http://www.dragonflybsd.org/cvsweb/src/sbin/vinum/list.c.diff?r1=1.3&r2=1.4&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/bus/cam/scsi/scsi_da.c.diff?r1=1.9&r2=1.10&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/bus/cam/scsi/scsi_sa.c.diff?r1=1.7&r2=1.8&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/dev/raid/vinum/vinumhdr.h.diff?r1=1.6&r2=1.7&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/sys/globaldata.h.diff?r1=1.20&r2=1.21&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/sys/lock.h.diff?r1=1.6&r2=1.7&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/sys/malloc.h.diff?r1=1.14&r2=1.15&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/sys/msgport.h.diff?r1=1.9&r2=1.10&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/sys/proc.h.diff?r1=1.36&r2=1.37&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/sys/signalvar.h.diff?r1=1.9&r2=1.10&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/sys/slaballoc.h.diff?r1=1.4&r2=1.5&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/sys/thread.h.diff?r1=1.36&r2=1.37&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/sys/thread2.h.diff?r1=1.9&r2=1.10&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/sys/user.h.diff?r1=1.11&r2=1.12&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/vfs/ufs/inode.h.diff?r1=1.4&r2=1.5&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/doscmd/doscmd.c.diff?r1=1.2&r2=1.3&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/fstat/fstat.c.diff?r1=1.6&r2=1.7&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/gcore/elfcore.c.diff?r1=1.2&r2=1.3&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/gcore/gcore.c.diff?r1=1.5&r2=1.6&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/gcore/md-sparc.c.diff?r1=1.3&r2=1.4&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/ipcs/ipcs.c.diff?r1=1.4&r2=1.5&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/ktrace/subr.c.diff?r1=1.4&r2=1.5&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/systat/pigs.c.diff?r1=1.7&r2=1.8&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/systat/vmstat.c.diff?r1=1.5&r2=1.6&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/top/machine.c.diff?r1=1.9&r2=1.10&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/vmstat/vmstat.c.diff?r1=1.8&r2=1.9&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/w/proc_compare.c.diff?r1=1.3&r2=1.4&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/w/w.c.diff?r1=1.4&r2=1.5&f=h





More information about the Commits mailing list