| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2008 The Android Open Source Project | 2 * Copyright 2008 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 /* | 8 /* |
| 9 * Implementation of the user-space ashmem API for devices, which have our | 9 * Implementation of the user-space ashmem API for devices, which have our |
| 10 * ashmem-enabled kernel. See ashmem-sim.c for the "fake" tmp-based version, | 10 * ashmem-enabled kernel. See ashmem-sim.c for the "fake" tmp-based version, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 int ashmem_unpin_region(int fd, size_t offset, size_t len) | 73 int ashmem_unpin_region(int fd, size_t offset, size_t len) |
| 74 { | 74 { |
| 75 struct ashmem_pin pin = { offset, len }; | 75 struct ashmem_pin pin = { offset, len }; |
| 76 return ioctl(fd, ASHMEM_UNPIN, &pin); | 76 return ioctl(fd, ASHMEM_UNPIN, &pin); |
| 77 } | 77 } |
| 78 | 78 |
| 79 int ashmem_get_size_region(int fd) | 79 int ashmem_get_size_region(int fd) |
| 80 { | 80 { |
| 81 return ioctl(fd, ASHMEM_GET_SIZE, NULL); | 81 return ioctl(fd, ASHMEM_GET_SIZE, NULL); |
| 82 } | 82 } |
| 83 |
| 84 int ashmem_purge_all_caches(int fd) |
| 85 { |
| 86 return ioctl(fd, ASHMEM_PURGE_ALL_CACHES, NULL); |
| 87 } |
| OLD | NEW |