Searched refs:pidlst (Results 1 – 4 of 4) sorted by relevance
/third_party/ltp/testcases/kernel/io/direct_io/ |
D | diotest3.c | 232 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()
|
D | diotest_routines.c | 168 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()
|
D | diotest6.c | 254 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()
|
D | diotest_routines.h | 8 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);
|