Blog
Community
Development
Documentation
CNDP
22.08.0
Main Page
Related Pages
Data Structures
Data Structures
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
x
Functions
_
c
d
e
f
g
h
i
j
k
l
m
n
p
s
t
u
v
x
Variables
Typedefs
a
b
c
h
i
j
l
m
o
p
s
t
u
v
Enumerations
Enumerator
_
a
c
d
e
j
m
p
r
s
t
u
Macros
_
a
c
d
e
h
i
j
k
l
m
o
p
r
t
u
v
x
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
examples/ibroker/handler.c
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2019-2022 Intel Corporation.
*/
#include <
ibroker.h
>
#include "main.h"
/*
* UINTR handlers and all functions called by UINTR handlers must be compiled
* separately with “-mgeneral-regs-only -minline-all-stringops” compiler options.
*
* -mgeneral-regs-only
* Generate code that uses only the integer registers.
* -minline-all-stringops
* Inline memcpy, memmove, memset and memcmp to avoid vector register usage in library
* functions.
*/
__attribute__((target(
"general-regs-only"
,
"inline-all-stringops"
))) int
srv_func(
int
vector,
void
*arg)
{
/* Need to use the args to eliminate compiler warnings */
(void)vector;
(void)arg;
total_interrupts++;
return
0;
}
ibroker.h
Generated by
1.9.1