X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libringbuffer%2Fshm_types.h;h=896474fcad2c2fa56851450c23688b6b160facc2;hb=036d17fbaa66ad9398b3a2606ab5c1f9ed1ea551;hp=ba7f4b2339d055f2ff13aed7e8f0c139c2267843;hpb=74d81a6cca2cd4a7718bba9368f382f9f2fbba84;p=lttng-ust.git diff --git a/libringbuffer/shm_types.h b/libringbuffer/shm_types.h index ba7f4b23..896474fc 100644 --- a/libringbuffer/shm_types.h +++ b/libringbuffer/shm_types.h @@ -1,27 +1,15 @@ -#ifndef _LIBRINGBUFFER_SHM_TYPES_H -#define _LIBRINGBUFFER_SHM_TYPES_H - /* - * libringbuffer/shm_types.h + * SPDX-License-Identifier: LGPL-2.1-only * * Copyright (C) 2011-2012 Mathieu Desnoyers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; only - * version 2.1 of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef _LIBRINGBUFFER_SHM_TYPES_H +#define _LIBRINGBUFFER_SHM_TYPES_H + #include +#include +#include #include "shm_internal.h" struct channel; @@ -39,6 +27,7 @@ struct shm_object { char *memory_map; size_t memory_map_size; uint64_t allocated_len; + int shm_fd_ownership; }; struct shm_object_table {