Home
last modified time | relevance | path

Searched refs:pidlst (Results 1 – 4 of 4) sorted by relevance

/third_party/ltp/testcases/kernel/io/direct_io/
Ddiotest3.c232 int *pidlst; in main() local
280 if (forkchldrn(&pidlst, numchild, READ_DIRECT, child_function) < 0) { in main()
285 if (waitchldrn(&pidlst, numchild) < 0) { in main()
294 free(pidlst); in main()
299 if (forkchldrn(&pidlst, numchild, WRITE_DIRECT, child_function) < 0) { in main()
304 if (waitchldrn(&pidlst, numchild) < 0) { in main()
312 free(pidlst); in main()
317 if (forkchldrn(&pidlst, numchild, RDWR_DIRECT, child_function) < 0) { in main()
322 if (waitchldrn(&pidlst, numchild) < 0) { in main()
330 free(pidlst); in main()
Ddiotest_routines.c168 int forkchldrn(int **pidlst, int numchld, int action, int (*chldfunc) ()) in forkchldrn() argument
172 if ((*pidlst = ((int *)malloc(sizeof(int) * numchld))) == 0) { in forkchldrn()
182 killchldrn(pidlst, i, SIGTERM); in forkchldrn()
188 *(*pidlst + i) = cpid; in forkchldrn()
197 int killchldrn(int **pidlst, int numchld, int sig) in killchldrn() argument
202 cpid = *(*pidlst + i); in killchldrn()
218 int waitchldrn(int **pidlst, int numchld) in waitchldrn() argument
224 cpid = *(*pidlst + i); in waitchldrn()
Ddiotest6.c254 int *pidlst; in main() local
308 if (forkchldrn(&pidlst, numchild, READ_DIRECT, child_function) < 0) { in main()
313 if (waitchldrn(&pidlst, numchild) < 0) { in main()
322 free(pidlst); in main()
327 if (forkchldrn(&pidlst, numchild, WRITE_DIRECT, child_function) < 0) { in main()
332 if (waitchldrn(&pidlst, numchild) < 0) { in main()
340 free(pidlst); in main()
345 if (forkchldrn(&pidlst, numchild, RDWR_DIRECT, child_function) < 0) { in main()
350 if (waitchldrn(&pidlst, numchild) < 0) { in main()
358 free(pidlst); in main()
Ddiotest_routines.h8 extern int forkchldrn(int **pidlst, int numchld, int action, int (*chldfunc)());
9 extern int waitchldrn(int **pidlst, int numchld);
10 extern int killchldrn(int **pidlst, int numchld, int sig);