]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - Documentation/bpf/btf.rst
Merge branch 'spi-5.3' into spi-linus
[linux.git] / Documentation / bpf / btf.rst
index 35d83e24dbdbc5ab46d689a820288bed48d6377d..4d565d202ce36e1b461dd92e1d4b7e4caac63f8e 100644 (file)
@@ -151,6 +151,7 @@ for the type. The maximum value of ``BTF_INT_BITS()`` is 128.
 
 The ``BTF_INT_OFFSET()`` specifies the starting bit offset to calculate values
 for this int. For example, a bitfield struct member has:
+
  * btf member bit offset 100 from the start of the structure,
  * btf member pointing to an int type,
  * the int type has ``BTF_INT_OFFSET() = 2`` and ``BTF_INT_BITS() = 4``
@@ -160,6 +161,7 @@ from bits ``100 + 2 = 102``.
 
 Alternatively, the bitfield struct member can be the following to access the
 same bits as the above:
+
  * btf member bit offset 102,
  * btf member pointing to an int type,
  * the int type has ``BTF_INT_OFFSET() = 0`` and ``BTF_INT_BITS() = 4``