AndroidO binder aligen

来源:互联网 发布:张佳玮 保罗跳投 知乎 编辑:程序博客网 时间:2024/05/22 04:46

https://android-review.googlesource.com/#/c/349091/1/include/uapi/linux/android/binder.h

binder_fd_array_object starts with a 4-byte header,followed by a few fields that are 8 bytes whenANDROID_BINDER_IPC_32BIT=N.This can cause alignment issues in a 64-bit kernelwith a 32-bit userspace, as on x86_32 an 8-byte primitivemay be aligned to a 4-byte address. Pad with a __u32to fix this.