> -----Original Message----- > From: [email protected] [mailto:lng-odp- > [email protected]] On Behalf Of ext Mike Holmes > Sent: Thursday, August 28, 2014 11:54 PM > To: [email protected] > Subject: [lng-odp] [PATCH] odp_shared_memory.h: Document odp_shm_reserve > > Signed-off-by: Mike Holmes <[email protected]> > --- > platform/linux-generic/include/api/odp_shared_memory.h | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/platform/linux-generic/include/api/odp_shared_memory.h > b/platform/linux-generic/include/api/odp_shared_memory.h > index 8ac8847..d75b179 100644 > --- a/platform/linux-generic/include/api/odp_shared_memory.h > +++ b/platform/linux-generic/include/api/odp_shared_memory.h > @@ -21,7 +21,7 @@ extern "C" { > > #include <odp_std_types.h> > > -/** Maximum shared memory block name lenght in chars */ > +/** Maximum shared memory block name length in chars */ > #define ODP_SHM_NAME_LEN 32 > > > @@ -33,6 +33,9 @@ extern "C" { > * @param align Block alignment in bytes > * > * @return Pointer to the reserved block, or NULL > + * > + * @note The same block name cannot be reused. > + * @note There is no way to unreserve a named block
I think there will be a odp_shm_release call. So I'd not put that last note there...otherwise half of the current API should be noted about missing features. -Petri > */ > void *odp_shm_reserve(const char *name, uint64_t size, uint64_t align); > > -- > 1.9.1 > > > _______________________________________________ > lng-odp mailing list > [email protected] > http://lists.linaro.org/mailman/listinfo/lng-odp _______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
