1COMEDI_DO_INSNLIST(3) COMEDI_DO_INSNLIST(3)
2
3
4
6 comedi_do_insnlist - perform multiple instructions
7
9 #include <comedilib.h>
10
11 int comedi_do_insnlist (comedi_t * device, comedi_insnlist * list);
12
14 The function comedi_do_insnlist() performs multiple Comedi instructions
15 as part of one system call. In addition, Comedi attempts to perform
16 the instructions atomically, that is, on standard Linux kernels, no
17 process preemption should occur during the instructions. However, the
18 process may be preempted before or after the group of instructions.
19
20 This function can be used to avoid the overhead of multiple system
21 calls, or to ensure that multiple instructions occur without signifi‐
22 cant delay between them.
23
24 Preemption may occur if any of the instructions or the data arrays of
25 any of the instructions exist in non-resident or copy-on-write pages.
26
28 The function comedi_do_insnlist() returns the number of sucessfully
29 completed instructions. Error information for the unsucessful instruc‐
30 tion is not available. If there is an error before the first instruc‐
31 tion can be executed, -1 is returned.
32
33 28 October 2007 COMEDI_DO_INSNLIST(3)