Debian Codegraph @

libibverbs/man/ibv_is_fork_initialized.3.md

raw symbols SCIP
1 ---
2 date: 2020-10-09
3 footer: libibverbs
4 header: "Libibverbs Programmer's Manual"
5 layout: page
6 license: 'Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md'
7 section: 3
8 title: IBV_IS_FORK_INITIALIZED
9 ---
10
11 # NAME
12
13 ibv_is_fork_initialized - check if fork support (ibv_fork_init) is enabled
14
15 # SYNOPSIS
16
17 ```c
18 #include <infiniband/verbs.h>
19
20 enum ibv_fork_status {
21 IBV_FORK_DISABLED,
22 IBV_FORK_ENABLED,
23 IBV_FORK_UNNEEDED,
24 };
25
26 enum ibv_fork_status ibv_is_fork_initialized(void);
27 ```
28
29 # DESCRIPTION
30
31 **ibv_is_fork_initialized()** checks whether libibverbs **fork()** support was
32 enabled through the **ibv_fork_init()** verb.
33
34 # RETURN VALUE
35
36 **ibv_is_fork_initialized()** returns IBV_FORK_DISABLED if fork support is
37 disabled, or IBV_FORK_ENABLED if enabled. IBV_FORK_UNNEEDED return value
38 indicates that the kernel copies DMA pages on fork, hence a call to
39 **ibv_fork_init()** is unneeded.
40
41 # NOTES
42
43 The IBV_FORK_UNNEEDED return value takes precedence over IBV_FORK_DISABLED
44 and IBV_FORK_ENABLED. If the kernel supports copy-on-fork for DMA pages then
45 IBV_FORK_UNNEEDED will be returned regardless of whether **ibv_fork_init()**
46 was called or not.
47
48 # SEE ALSO
49
50 **fork**(2),
51 **ibv_fork_init**(3)
52
53 # AUTHOR
54
55 Gal Pressman <[email protected]>