3 .TH IBV_FORK_INIT 3 2006-10-31 libibverbs "Libibverbs Programmer's Manual"
5 ibv_fork_init \- initialize libibverbs to support fork()
8 .B #include <infiniband/verbs.h>
10 .BI "int ibv_fork_init(void);
14 initializes libibverbs's data structures to handle
16 function calls correctly and avoid data corruption, whether
18 is called explicitly or implicitly (such as in
21 It is not necessary to use this function if all parent process threads
22 are always blocked until all child processes end or change address
28 returns 0 on success, or the value of errno on failure (which indicates the failure reason).
31 works on Linux kernels supporting the
37 Setting the environment variable
41 has the same effect as calling
42 .B ibv_fork_init()\fR.
46 will reduce performance due to an extra system call for every memory
47 registration, and the additional memory allocated to track memory
48 regions. The precise performance impact depends on the workload and
49 usually will not be significant.
55 .BR ibv_get_device_list (3)
58 Dotan Barak <dotanb@mellanox.co.il>