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

pstree: Export current

Export current to allow to use find_unused_fd()
from everywhere.
Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent a2de3eb8
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
#define arch_export_unmap __export_unmap #define arch_export_unmap __export_unmap
#endif #endif
static struct pstree_item *current; struct pstree_item *current;
static int restore_task_with_children(void *); static int restore_task_with_children(void *);
static int sigreturn_restore(pid_t pid, struct task_restore_args *ta, unsigned long alen, CoreEntry *core); static int sigreturn_restore(pid_t pid, struct task_restore_args *ta, unsigned long alen, CoreEntry *core);
......
...@@ -26,6 +26,8 @@ struct pstree_item { ...@@ -26,6 +26,8 @@ struct pstree_item {
TaskKobjIdsEntry *ids; TaskKobjIdsEntry *ids;
}; };
struct pstree_item *current;
struct rst_info; struct rst_info;
/* See alloc_pstree_item() for details */ /* See alloc_pstree_item() for details */
static inline struct rst_info *rsti(struct pstree_item *i) static inline struct rst_info *rsti(struct pstree_item *i)
......
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