Re: [PATCH 09/10] staging/android: add flags member to sync ioctl structs
From: Maarten Lankhorst
Date: Mon Feb 01 2016 - 03:40:11 EST
Op 29-01-16 om 22:20 schreef Gustavo Padovan:
> From: Gustavo Padovan <gustavo.padovan@xxxxxxxxxxxxxxx>
>
> Play safe and add flags member to all structs. So we don't need to
> break API or create new IOCTL in the future if new features that requires
> flags arises.
>
This only helps if you reject flags != 0 in the ioctl, else when you extend the abi userspace might initialize it with garbage.
~Maarten