mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 23:35:21 +00:00
proc-parse: Parse pid's fdinfo entries
The existing code opens "self" and parses what's in there, just twist the code a little to accept generic pid. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -154,6 +154,8 @@ union fdinfo_entries {
|
||||
|
||||
extern int parse_fdinfo(int fd, int type,
|
||||
int (*cb)(union fdinfo_entries *e, void *arg), void *arg);
|
||||
extern int parse_fdinfo_pid(int pid, int fd, int type,
|
||||
int (*cb)(union fdinfo_entries *e, void *arg), void *arg);
|
||||
extern int parse_cpuinfo_features(int (*handler)(char *tok));
|
||||
extern int parse_file_locks(void);
|
||||
|
||||
|
Reference in New Issue
Block a user