From 538e0b98c4277ed788e0b2e9b642d21c5c027aca Mon Sep 17 00:00:00 2001 From: Martijn Coenen Date: Wed, 6 Mar 2019 14:20:50 +0100 Subject: [PATCH] Update comments on native_handle_create. To indicate limits. Test: builds Change-Id: Id5129a7f6a8f413911544dedeb02bb4e7a2f6e10 --- libcutils/include/cutils/native_handle.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libcutils/include/cutils/native_handle.h b/libcutils/include/cutils/native_handle.h index f6cae360f..4f0745605 100644 --- a/libcutils/include/cutils/native_handle.h +++ b/libcutils/include/cutils/native_handle.h @@ -69,10 +69,11 @@ native_handle_t* native_handle_init(char* storage, int numFds, int numInts); /* * native_handle_create - * + * * creates a native_handle_t and initializes it. must be destroyed with - * native_handle_delete(). - * + * native_handle_delete(). Note that numFds must be <= NATIVE_HANDLE_MAX_FDS, + * numInts must be <= NATIVE_HANDLE_MAX_INTS, and both must be >= 0. + * */ native_handle_t* native_handle_create(int numFds, int numInts);