File: igt_taints.h

package info (click to toggle)
intel-gpu-tools 1.27.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 54,600 kB
  • sloc: xml: 741,155; ansic: 249,033; yacc: 2,781; python: 2,064; sh: 847; perl: 796; lex: 487; asm: 219; makefile: 27
file content (19 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2021 Intel Corporation
 */

#ifndef __IGT_TAINTS_H__
#define __IGT_TAINTS_H__

unsigned long igt_kernel_tainted(unsigned long *taints);
const char *igt_explain_taints(unsigned long *taints);

unsigned long igt_bad_taints(void);

static inline unsigned long is_tainted(unsigned long taints)
{
	return taints & igt_bad_taints();
}

#endif /* __IGT_TAINTS_H__ */