File: process.h

package info (click to toggle)
conntrack-tools 1%3A1.4.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,580 kB
  • sloc: ansic: 20,447; sh: 6,209; yacc: 1,480; makefile: 194; lex: 181; python: 176
file content (25 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _PROCESS_H_
#define _PROCESS_H_

enum process_type {
	CTD_PROC_ANY,		/* any type */
	CTD_PROC_FLUSH,		/* flush process */
	CTD_PROC_COMMIT,	/* commit process */
	CTD_PROC_MAX
};

#define CTD_PROC_F_EXCL 	(1 << 0)  /* only one process at a time */

struct child_process {
	struct list_head	head;
	int			pid;
	int			type;
	void			(*cb)(void *data);
	void			*data;
};

int fork_process_new(int type, int flags, void (*cb)(void *data), void *data);
int fork_process_delete(int pid);
void fork_process_dump(int fd);

#endif