Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
f34d63bf
Commit
f34d63bf
authored
Apr 16, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fd: Comment file_desc_ops
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
8f5b093c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
files.h
include/files.h
+18
-0
No files found.
include/files.h
View file @
f34d63bf
...
...
@@ -53,10 +53,28 @@ static inline int fdinfo_rst_prio(struct fdinfo_list_entry *fd_a, struct fdinfo_
}
struct
file_desc_ops
{
/* fd_types from protobuf/fdinfo.proto */
unsigned
int
type
;
/*
* Opens a file by whatever syscall is required for that.
* The returned descriptor may be closed (dup2-ed to another)
* so it shouldn't be saved for any post-actions.
*/
int
(
*
open
)(
struct
file_desc
*
d
);
/*
* Called on a file when all files of that type are opened
* and with the fd being the "restored" one.
*/
int
(
*
post_open
)(
struct
file_desc
*
d
,
int
fd
);
/*
* Report whether the fd in question wants a transport socket
* in it instead of a real file.
*/
int
(
*
want_transport
)(
FdinfoEntry
*
fe
,
struct
file_desc
*
d
);
/*
* Helps determining sequence of different file types restore.
* See the prepare_fds for details.
*/
struct
list_head
*
(
*
select_ps_list
)(
struct
file_desc
*
,
struct
rst_info
*
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment