mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 08:37:14 +07:00
6f52b16c5b
Many user space API headers are missing licensing information, which makes it hard for compliance tools to determine the correct license. By default are files without license information under the default license of the kernel, which is GPLV2. Marking them GPLV2 would exclude them from being included in non GPLV2 code, which is obviously not intended. The user space API headers fall under the syscall exception which is in the kernels COPYING file: NOTE! This copyright does *not* cover user programs that use kernel services by normal system calls - this is merely considered normal use of the kernel, and does *not* fall under the heading of "derived work". otherwise syscall usage would not be possible. Update the files which contain no license information with an SPDX license identifier. The chosen identifier is 'GPL-2.0 WITH Linux-syscall-note' which is the officially assigned identifier for the Linux syscall exception. SPDX license identifiers are a legally binding shorthand, which can be used instead of the full boiler plate text. This patch is based on work done by Thomas Gleixner and Kate Stewart and Philippe Ombredanne. See the previous patch in this series for the methodology of how this patch was researched. Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
54 lines
1.1 KiB
C
54 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
/*
|
|
* include/linux/signalfd.h
|
|
*
|
|
* Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
|
|
*
|
|
*/
|
|
|
|
#ifndef _UAPI_LINUX_SIGNALFD_H
|
|
#define _UAPI_LINUX_SIGNALFD_H
|
|
|
|
#include <linux/types.h>
|
|
/* For O_CLOEXEC and O_NONBLOCK */
|
|
#include <linux/fcntl.h>
|
|
|
|
/* Flags for signalfd4. */
|
|
#define SFD_CLOEXEC O_CLOEXEC
|
|
#define SFD_NONBLOCK O_NONBLOCK
|
|
|
|
struct signalfd_siginfo {
|
|
__u32 ssi_signo;
|
|
__s32 ssi_errno;
|
|
__s32 ssi_code;
|
|
__u32 ssi_pid;
|
|
__u32 ssi_uid;
|
|
__s32 ssi_fd;
|
|
__u32 ssi_tid;
|
|
__u32 ssi_band;
|
|
__u32 ssi_overrun;
|
|
__u32 ssi_trapno;
|
|
__s32 ssi_status;
|
|
__s32 ssi_int;
|
|
__u64 ssi_ptr;
|
|
__u64 ssi_utime;
|
|
__u64 ssi_stime;
|
|
__u64 ssi_addr;
|
|
__u16 ssi_addr_lsb;
|
|
|
|
/*
|
|
* Pad strcture to 128 bytes. Remember to update the
|
|
* pad size when you add new members. We use a fixed
|
|
* size structure to avoid compatibility problems with
|
|
* future versions, and we leave extra space for additional
|
|
* members. We use fixed size members because this strcture
|
|
* comes out of a read(2) and we really don't want to have
|
|
* a compat on read(2).
|
|
*/
|
|
__u8 __pad[46];
|
|
};
|
|
|
|
|
|
|
|
#endif /* _UAPI_LINUX_SIGNALFD_H */
|