Updates /doc/hook/ aus Driversourcen.
Change-Id: I039ae8b3cfcaadb859e8e10037b9fa9f6d120fba
diff --git a/doc/hook/create_lwobject_copy b/doc/hook/create_lwobject_copy
new file mode 100644
index 0000000..b1b21eb
--- /dev/null
+++ b/doc/hook/create_lwobject_copy
@@ -0,0 +1,31 @@
+SYNOPSIS
+ #include <sys/driver_hooks.h>
+
+ set_driver_hook(H_CREATE_LWOBJECT_COPY, value)
+
+ <value> being:
+
+ void <name> ()
+ void <closure> ()
+ void <closure> (lwobject obj_to_init)
+
+DESCRIPTION
+ Optional hook to finish initialization of a copy of a lightweight
+ object. Hook setting can be any closure, or the name of the
+ function (static or public) to call in the object.
+
+ If the hook is an unbound lambda closure expecting arguments, it is
+ bound to the current object and called with the created object as
+ the first argument. If the hook is an unbound lambda closure without
+ arguments, it is bound to the object to be initalized and called.
+ If the hook is any other type of closure, it is called with the
+ created object as the first argument.
+
+ If the hook is defined as the name of an lfun in the lightweight
+ object, it is called in the new lwobject.
+
+HISTORY
+ Introduced in LDMud 3.6.6.
+
+SEE ALSO
+ hooks(C), create_lwobject(H), copy(E), deep_copy(E)