aboutsummaryrefslogtreecommitdiffstats
path: root/system/doc/reference_manual
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-05-08 14:51:44 +0200
committerBjörn Gustavsson <[email protected]>2015-05-08 14:51:44 +0200
commitef1e9027c9ec7aa55de13eb3cb8372fddc59d30b (patch)
treeb320f02402c7d3e03b53026f49b7fa226b3e24d7 /system/doc/reference_manual
parenta06c324e16ed07016e258556fbff65a886bd2253 (diff)
parente47490f83e561a45cee9e8f72f1e1f91f19c60b7 (diff)
downloadotp-ef1e9027c9ec7aa55de13eb3cb8372fddc59d30b.tar.gz
otp-ef1e9027c9ec7aa55de13eb3cb8372fddc59d30b.tar.bz2
otp-ef1e9027c9ec7aa55de13eb3cb8372fddc59d30b.zip
Merge branch 'richcarl/md5-fixes'
* richcarl/md5-fixes: Set module_info md5 for native modules properly Add module_info entry for native code Gracefully handle empty md5 field in module_info Remove 'imports' key from spec of get_module_info()
Diffstat (limited to 'system/doc/reference_manual')
-rw-r--r--system/doc/reference_manual/modules.xml14
1 files changed, 12 insertions, 2 deletions
diff --git a/system/doc/reference_manual/modules.xml b/system/doc/reference_manual/modules.xml
index 39c739a146..d283c33910 100644
--- a/system/doc/reference_manual/modules.xml
+++ b/system/doc/reference_manual/modules.xml
@@ -246,7 +246,8 @@ behaviour_info(callbacks) -> Callbacks.</pre>
a list of <c>{Key,Value}</c> tuples with information about
the module. Currently, the list contain tuples with the following
<c>Key</c>s: <c>module</c>, <c>attributes</c>, <c>compile</c>,
- <c>exports</c> and <c>md5</c>. The order and number of tuples
+ <c>exports</c>, <c>md5</c> and <c>native</c>.
+ The order and number of tuples
may change without prior notice.</p>
</section>
@@ -288,7 +289,9 @@ behaviour_info(callbacks) -> Callbacks.</pre>
<tag><c>md5</c></tag>
<item>
- <p>Returns a binary representing the MD5 checksum of the module.</p>
+ <p>Returns a binary representing the MD5 checksum of the module.
+ If the module has native code loaded, this will be the MD5 of the
+ native code, not the BEAM bytecode.</p>
</item>
<tag><c>exports</c></tag>
@@ -302,6 +305,13 @@ behaviour_info(callbacks) -> Callbacks.</pre>
<p>Returns a list of <c>{Name,Arity}</c> tuples with
all functions in the module.</p>
</item>
+
+ <tag><c>native</c></tag>
+ <item>
+ <p>Return <c>true</c> if the module has native compiled code.
+ Return <c>false</c> otherwise. In a system compiled without HiPE
+ support, the result is always <c>false</c></p>
+ </item>
</taglist>
</section>
</section>