Commit 67465199 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Pavel Emelyanov

files: Export collect_fd()

Declare it extern and allow to use outside files.c.
Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 107f2e40
...@@ -708,7 +708,7 @@ static struct fdinfo_list_entry *alloc_fle(int pid, FdinfoEntry *fe) ...@@ -708,7 +708,7 @@ static struct fdinfo_list_entry *alloc_fle(int pid, FdinfoEntry *fe)
return fle; return fle;
} }
static int collect_fd(int pid, FdinfoEntry *e, struct rst_info *rst_info) int collect_fd(int pid, FdinfoEntry *e, struct rst_info *rst_info)
{ {
struct fdinfo_list_entry *le, *new_le; struct fdinfo_list_entry *le, *new_le;
struct file_desc *fdesc; struct file_desc *fdesc;
......
...@@ -116,6 +116,7 @@ struct file_desc_ops { ...@@ -116,6 +116,7 @@ struct file_desc_ops {
char * (*name)(struct file_desc *, char *b, size_t s); char * (*name)(struct file_desc *, char *b, size_t s);
}; };
int collect_fd(int pid, FdinfoEntry *e, struct rst_info *rst_info);
void collect_task_fd(struct fdinfo_list_entry *new_fle, struct rst_info *ri); void collect_task_fd(struct fdinfo_list_entry *new_fle, struct rst_info *ri);
unsigned int find_unused_fd(struct pstree_item *, int hint_fd); unsigned int find_unused_fd(struct pstree_item *, int hint_fd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment