diff options
author | Rebecca Schultz Zavin <rebecca@android.com> | 2012-09-20 09:46:19 -0700 |
---|---|---|
committer | Rebecca Schultz Zavin <rebecca@android.com> | 2012-09-20 09:46:19 -0700 |
commit | 3cfcc300058070f0873763abfa604e07ec536da3 (patch) | |
tree | 52a4321c1d8e9f951da04a439f4182b7297198b6 /libion | |
parent | 1683413f413eb1b77f527247db2df31eae93ee3a (diff) | |
download | system_core-3cfcc300058070f0873763abfa604e07ec536da3.zip system_core-3cfcc300058070f0873763abfa604e07ec536da3.tar.gz system_core-3cfcc300058070f0873763abfa604e07ec536da3.tar.bz2 |
Add explicit sync call to ion library
Bug: 6854979
Change-Id: I535d55af897eeb4ed707b5da54f3fbf36afa452c
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Diffstat (limited to 'libion')
-rw-r--r-- | libion/ion.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libion/ion.c b/libion/ion.c index 164cec9..020c35b 100644 --- a/libion/ion.c +++ b/libion/ion.c @@ -146,3 +146,11 @@ int ion_import(int fd, int share_fd, struct ion_handle **handle) *handle = data.handle; return ret; } + +int ion_sync_fd(int fd, int handle_fd) +{ + struct ion_fd_data data = { + .fd = handle_fd, + }; + return ion_ioctl(fd, ION_IOC_SYNC, &data); +} |