git: kernel/kobj: Put the default kobj_method inside the kobjop_desc struct.

Sascha Wildner swildner at crater.dragonflybsd.org
Thu Mar 22 12:28:10 PDT 2012


commit 0e0fd600f4c75d4dc8a6d605ba9edc960d4f205e
Author: Sascha Wildner <saw at online.de>
Date:   Thu Mar 22 19:35:13 2012 +0100

    kernel/kobj: Put the default kobj_method inside the kobjop_desc struct.
    
    Also, make kobj_methods constant. See FreeBSD's r227343 and r227384 for
    more information.
    
    This change reduces the size of a LINT64 kernel by 18KB and our source
    by 7 lines!
    
    Taken-from: FreeBSD

Summary of changes:
 sys/kern/subr_kobj.c     |    5 ++---
 sys/sys/kobj.h           |    5 ++---
 sys/tools/makeobjops.awk |    7 +------
 3 files changed, 5 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0e0fd600f4c75d4dc8a6d605ba9edc960d4f205e


-- 
DragonFly BSD source repository





More information about the Commits mailing list