Commit 361dba0c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Update comment about VSL layout

parent b5443cc8
...@@ -50,10 +50,20 @@ ...@@ -50,10 +50,20 @@
* The log member points to an array of 32bit unsigned integers containing * The log member points to an array of 32bit unsigned integers containing
* log records. * log records.
* *
* Each logrecord consist of: * Each logrecord consist of four or more 32 bit words, stored in
* [n] = ((type & 0xff) << 24) | (length & 0xffff) * native endiansess:
* [n + 1] = ((marker & 0x03) << 30) | (identifier & 0x3fffffff) *
* [n + 2] ... [m] = content (NUL-terminated) * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* | TAG | unused |ver| length |
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* | 32 lower bits of VXID |
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* |B|C| unused (zero) | 19 upper bits of VXID |
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* | content ... (NUL-terminated) |
* +-+-+ +-+-+
* | ... |
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* *
* Logrecords are NUL-terminated so that string functions can be run * Logrecords are NUL-terminated so that string functions can be run
* directly on the shmlog data. * directly on the shmlog data.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment