summaryrefslogtreecommitdiffstats
path: root/tools/net/sunrpc/xdrgen/generators/union.py
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2024-10-03 20:54:44 +0200
committerChuck Lever <chuck.lever@oracle.com>2024-11-11 19:42:05 +0100
commitce5a75d9939fab904d27b403011eddd2b173b495 (patch)
tree2fef070da3093c332e87b9730a9aca0053334a7b /tools/net/sunrpc/xdrgen/generators/union.py
parentxdrgen: XDR width for pointer types (diff)
downloadlinux-ce5a75d9939fab904d27b403011eddd2b173b495.tar.xz
linux-ce5a75d9939fab904d27b403011eddd2b173b495.zip
xdrgen: XDR width for union types
Not yet complete. The tool doesn't do any math yet. Thus, even though the maximum XDR width of a union is the width of the union enumerator plus the width of its largest arm, we're using the sum of all the elements of the union for the moment. This means that buffer size requirements are overestimated, and that the generated maxsize macro cannot yet be used for determining data element alignment in the XDR buffer. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/net/sunrpc/xdrgen/generators/union.py')
0 files changed, 0 insertions, 0 deletions