Searched refs:pidlst (Results 1 – 4 of 4) sorted by relevance
/external/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() 298 if (forkchldrn(&pidlst, numchild, WRITE_DIRECT, child_function) < 0) { in main() 303 if (waitchldrn(&pidlst, numchild) < 0) { in main() 311 free(pidlst); in main() 315 if (forkchldrn(&pidlst, numchild, RDWR_DIRECT, child_function) < 0) { in main() 320 if (waitchldrn(&pidlst, numchild) < 0) { in main() 328 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() 326 if (forkchldrn(&pidlst, numchild, WRITE_DIRECT, child_function) < 0) { in main() 331 if (waitchldrn(&pidlst, numchild) < 0) { in main() 339 free(pidlst); in main() 343 if (forkchldrn(&pidlst, numchild, RDWR_DIRECT, child_function) < 0) { in main() 348 if (waitchldrn(&pidlst, numchild) < 0) { in main() 356 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);
|