diff options
author | dfr <dfr@FreeBSD.org> | 2000-08-28 21:11:12 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2000-08-28 21:11:12 +0000 |
commit | 1e7cf75b9537431c6f21ffa6e98dcabcf07ef8b4 (patch) | |
tree | 73de949ba43636bf05256d30b9aefca8f682c067 /sys/sys | |
parent | d704f8b4162aee315f87d506fbf1d74f1ccdc1d6 (diff) | |
download | FreeBSD-src-1e7cf75b9537431c6f21ffa6e98dcabcf07ef8b4.zip FreeBSD-src-1e7cf75b9537431c6f21ffa6e98dcabcf07ef8b4.tar.gz |
Add kobj_class_compile_static() to allow classes to be initialised
statically (i.e. without calling malloc). This allows kobj to be used
very early in the boot sequence.
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/kobj.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/kobj.h b/sys/sys/kobj.h index bf10325..c291963 100644 --- a/sys/sys/kobj.h +++ b/sys/sys/kobj.h @@ -105,6 +105,12 @@ struct kobj_class name ## _class = { \ void kobj_class_compile(kobj_class_t cls); /* + * Compile the method table, with the caller providing the space for + * the ops table.(for use before malloc is initialised). + */ +void kobj_class_compile_static(kobj_class_t cls, kobj_ops_t ops); + +/* * Free the compiled method table in a class. */ void kobj_class_free(kobj_class_t cls); |