Searched refs:io_context (Results 1 - 18 of 18) sorted by relevance

/haiku/headers/private/kernel/fs/
H A Dfd.h20 struct io_context;
38 status_t (*fd_read_dir)(struct io_context* ioContext,
86 extern int new_fd_etc(struct io_context *, struct file_descriptor *,
88 extern int new_fd(struct io_context *, struct file_descriptor *);
89 extern struct file_descriptor *get_fd(struct io_context *, int);
90 extern struct file_descriptor *get_open_fd(struct io_context *, int);
91 extern void close_fd(struct io_context *context,
93 extern status_t close_fd_index(struct io_context *context, int fd);
103 extern bool fd_close_on_exec(struct io_context *context, int fd);
104 extern void fd_set_close_on_exec(struct io_context *contex
[all...]
H A Dnode_monitor.h12 struct io_context;
29 extern status_t remove_node_monitors(struct io_context *context);
/haiku/src/system/kernel/fs/
H A Dvfs_tracing.h42 NewFD(io_context* context, int fd, file_descriptor* descriptor)
58 io_context* fContext;
82 GetFD(io_context* context, int fd, file_descriptor* descriptor)
98 io_context* fContext;
105 RemoveFD(io_context* context, int fd, file_descriptor* descriptor)
121 io_context* fContext;
128 Dup2FD(io_context* context, int oldFD, int newFD)
150 io_context* fContext;
160 InheritFD(io_context* context, int fd, file_descriptor* descriptor,
161 io_context* parentContex
[all...]
H A Dnode_monitor.cpp109 status_t RemoveListeners(io_context *context);
118 status_t AddListener(io_context *context, dev_t device, ino_t node,
120 status_t RemoveListener(io_context *context, dev_t device, ino_t node,
123 status_t RemoveUserListeners(struct io_context *context,
125 status_t UpdateUserListener(io_context *context, dev_t device,
132 status_t _RemoveListener(io_context *context, dev_t device, ino_t node,
137 status_t _GetMonitor(io_context *context, dev_t device, ino_t node,
142 status_t _AddMonitorListener(io_context *context,
145 status_t _UpdateListener(io_context *context, dev_t device, ino_t node,
303 NodeMonitorService::_RemoveListener(io_context *contex
[all...]
H A Dfd.cpp46 static struct file_descriptor* get_fd_locked(struct io_context* context,
48 static struct file_descriptor* remove_fd(struct io_context* context, int fd);
94 fd_close_on_exec(struct io_context* context, int fd)
101 fd_set_close_on_exec(struct io_context* context, int fd, bool closeFD)
114 new_fd_etc(struct io_context* context, struct file_descriptor* descriptor,
150 new_fd(struct io_context* context, struct file_descriptor* descriptor)
202 close_fd(struct io_context* context, struct file_descriptor* descriptor)
218 close_fd_index(struct io_context* context, int fd)
254 get_fd_locked(struct io_context* context, int fd)
275 get_fd(struct io_context* contex
[all...]
H A Dvfs.cpp253 /*! \brief Guards io_context::root.
255 Must be held when setting or getting the io_context::root field.
257 setting the field is inc_vnode_ref_count() on io_context::root.
259 static mutex sIOContextRootLock = MUTEX_INITIALIZER("io_context::root lock");
369 static status_t dir_read(struct io_context* context,
372 static status_t dir_read(struct io_context* ioContext, struct vnode* vnode,
377 static status_t attr_dir_read(struct io_context* context,
395 static status_t index_dir_read(struct io_context* context,
401 static status_t query_read(struct io_context* context,
1612 release_advisory_lock(struct vnode* vnode, struct io_context* contex
[all...]
/haiku/src/tools/fs_shell/
H A Dfd.h19 extern io_context* gKernelIOContext;
81 extern int new_fd_etc(struct io_context *,
83 extern int new_fd(struct io_context *, struct file_descriptor *);
84 extern file_descriptor* get_fd(struct io_context *, int);
96 extern bool fd_close_on_exec(struct io_context *context, int fd);
97 extern void fd_set_close_on_exec(struct io_context *context, int fd,
100 static io_context* get_current_io_context(bool kernel);
107 static inline struct io_context *
H A Dvfs.h32 typedef struct io_context { struct in namespace:FSShell
39 } io_context; typedef in namespace:FSShell
H A Dfd.cpp32 io_context* gKernelIOContext;
74 fd_close_on_exec(struct io_context *context, int fd)
81 fd_set_close_on_exec(struct io_context *context, int fd, bool closeFD)
95 new_fd_etc(struct io_context *context, struct file_descriptor *descriptor,
126 new_fd(struct io_context *context, struct file_descriptor *descriptor)
213 get_fd(struct io_context *context, int fd)
243 remove_fd(struct io_context *context, int fd)
274 struct io_context *context = get_current_io_context(kernel);
310 struct io_context *context;
445 struct io_context *i
[all...]
H A Dvfs.cpp1269 struct io_context *context = get_current_io_context(kernel);
2679 struct io_context *context = get_current_io_context(false);
2794 struct io_context *context = (struct io_context *)_context;
2828 struct io_context *context;
2829 struct io_context *parentContext;
2831 context = (io_context *)malloc(sizeof(struct io_context));
2835 fssh_memset(context, 0, sizeof(struct io_context));
2837 parentContext = (struct io_context *)_parentContex
[all...]
H A Dfuse.cpp81 gKernelIOContext = (io_context*)vfs_new_io_context(NULL);
H A Dfssh.cpp90 gKernelIOContext = (io_context*)vfs_new_io_context(NULL);
/haiku/headers/private/kernel/
H A Dvfs.h48 typedef struct io_context { struct
62 } io_context; typedef in typeref:struct:io_context
72 void vfs_exec_io_context(io_context *context);
73 io_context* vfs_new_io_context(io_context* parentContext,
75 void vfs_get_io_context(io_context *context);
76 void vfs_put_io_context(io_context *context);
77 status_t vfs_resize_fd_table(struct io_context* context, uint32 newSize);
128 status_t vfs_release_posix_lock(io_context* context,
H A Dthread_types.h63 struct io_context;
243 struct io_context *io_context; member in struct:BKernel::Team
/haiku/src/add-ons/kernel/network/protocols/unix/
H A Dunix.cpp51 io_context* ioContext = get_current_io_context(!gStackModule->is_syscall());
315 io_context* ioContext = get_current_io_context(!gStackModule->is_syscall());
383 io_context* ioContext = get_current_io_context(!gStackModule->is_syscall());
/haiku/src/system/kernel/
H A Dteam.cpp443 io_context = NULL;
521 if (io_context != NULL)
522 vfs_put_io_context(io_context);
1162 kprintf("io_context: %p\n", team->io_context);
1740 io_context* parentIOContext = NULL;
1794 parentIOContext = parent->io_context;
1811 // create a new io_context for this team
1812 team->io_context = vfs_new_io_context(parentIOContext, true);
1813 if (!team->io_context) {
[all...]
/haiku/src/system/kernel/events/
H A Devent_queue.cpp631 io_context* context = get_current_io_context(false);
H A Dwait_for_objects.cpp945 struct io_context *context = get_current_io_context(false);

Completed in 327 milliseconds