Lines Matching defs:handle

25  * \brief Take an fd and create a native handle containing only the given fd.
26 * The created handle will need to be deleted manually with
31 * supplied \p fd is negative, the created native handle will contain no file
34 * If the native handle cannot be created, the return value will be
52 * \brief Extract a file descriptor from a native handle.
93 * returned native handle when it is no longer needed.
204 t->nativeHandle = hidl_handle(l.handle);
218 native_handle_t* handle = t.nativeHandle == nullptr ?
221 size_t const numInts = 12 + (handle ? handle->numInts : 0);
224 size_t numFds = static_cast<size_t>(handle ? handle->numFds : 0);
239 if (handle) {
240 ints[10] = static_cast<int32_t>(handle->numFds);
241 ints[11] = static_cast<int32_t>(handle->numInts);
242 int* intsStart = handle->data + handle->numFds;
243 std::copy(handle->data, intsStart, fds);
244 std::copy(intsStart, intsStart + handle->numInts, &ints[12]);
254 native_handle_delete(handle);
362 * \param[out] nh The underlying native handle.
370 * native handle, which needs to be deleted with `native_handle_delete()`
439 * \param[out] nh The native handle pointed to by \p t.
442 * On success, \p nh will hold a newly created native handle, which must be
623 * \param[out] nh The underlying native handle.
966 * native handle. All the non-`nullptr` elements must be deleted individually
1244 * \param[out] nh The native handle cloned from `t.fence`.
1291 * \param[out] nh The underlying native handle for `t->fence`.
1299 * descriptor, \p nh will be a newly created native handle holding that file
1346 * \param[out] nh The underlying native handle for `t->fence`.
1350 * descriptor, \p nh will be a newly created native handle holding that file
1458 * native handle. All the non-`nullptr` elements must be deleted individually