HomeSort by relevance Sort by last modified time
    Searched refs:pidlst (Results 1 - 4 of 4) sorted by null

  /external/ltp/testcases/kernel/io/direct_io/
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);
diotest_routines.c 168 int forkchldrn(int **pidlst, int numchld, int action, int (*chldfunc) ())
172 if ((*pidlst = ((int *)malloc(sizeof(int) * numchld))) == 0) {
173 fprintf(stderr, "forkchldrn: calloc failed for pidlst: %s\n",
182 killchldrn(pidlst, i, SIGTERM);
188 *(*pidlst + i) = cpid;
194 * killchldrn: signal the children listed in pidlst with the given signal
197 int killchldrn(int **pidlst, int numchld, int sig)
202 cpid = *(*pidlst + i);
216 * waitchldrn: wait for child process listed in pidlst to finish.
218 int waitchldrn(int **pidlst, int numchld
    [all...]
diotest3.c 232 int *pidlst; local
280 if (forkchldrn(&pidlst, numchild, READ_DIRECT, child_function) < 0) {
285 if (waitchldrn(&pidlst, numchild) < 0) {
294 free(pidlst);
298 if (forkchldrn(&pidlst, numchild, WRITE_DIRECT, child_function) < 0) {
303 if (waitchldrn(&pidlst, numchild) < 0) {
311 free(pidlst);
315 if (forkchldrn(&pidlst, numchild, RDWR_DIRECT, child_function) < 0) {
320 if (waitchldrn(&pidlst, numchild) < 0) {
328 free(pidlst);
    [all...]
diotest6.c 254 int *pidlst; local
308 if (forkchldrn(&pidlst, numchild, READ_DIRECT, child_function) < 0) {
313 if (waitchldrn(&pidlst, numchild) < 0) {
322 free(pidlst);
326 if (forkchldrn(&pidlst, numchild, WRITE_DIRECT, child_function) < 0) {
331 if (waitchldrn(&pidlst, numchild) < 0) {
339 free(pidlst);
343 if (forkchldrn(&pidlst, numchild, RDWR_DIRECT, child_function) < 0) {
348 if (waitchldrn(&pidlst, numchild) < 0) {
356 free(pidlst);
    [all...]

Completed in 311 milliseconds