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
ba8671b4
Commit
ba8671b4
authored
Jul 03, 2014
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
files: Split open_reg_by_id into two parts
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
9b91bf39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
files-reg.c
files-reg.c
+6
-1
files-reg.h
include/files-reg.h
+1
-0
No files found.
files-reg.c
View file @
ba8671b4
...
...
@@ -815,6 +815,11 @@ static int do_open_reg(int ns_root_fd, struct reg_file_info *rfi, void *arg)
return
fd
;
}
int
open_reg_fd
(
struct
file_desc
*
fd
)
{
return
open_path
(
fd
,
do_open_reg_noseek
,
NULL
);
}
int
open_reg_by_id
(
u32
id
)
{
struct
file_desc
*
fd
;
...
...
@@ -831,7 +836,7 @@ int open_reg_by_id(u32 id)
return
-
1
;
}
return
open_
path
(
fd
,
do_open_reg_noseek
,
NULL
);
return
open_
reg_fd
(
fd
);
}
int
get_filemap_fd
(
struct
vma_area
*
vma
)
...
...
include/files-reg.h
View file @
ba8671b4
...
...
@@ -26,6 +26,7 @@ struct reg_file_info {
};
extern
int
open_reg_by_id
(
u32
id
);
extern
int
open_reg_fd
(
struct
file_desc
*
);
extern
int
open_path
(
struct
file_desc
*
,
int
(
*
open_cb
)(
int
ns_root_fd
,
struct
reg_file_info
*
,
void
*
),
void
*
arg
);
extern
void
clear_ghost_files
(
void
);
...
...
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