Lines Matching refs:ntvfs

28 	struct ntvfs_module_context *ntvfs = req->ctx->modules;  in ntvfs_connect()  local
29 if (!ntvfs->ops->connect_fn) { in ntvfs_connect()
32 return ntvfs->ops->connect_fn(ntvfs, req, tcon); in ntvfs_connect()
37 struct ntvfs_module_context *ntvfs; in ntvfs_disconnect() local
41 ntvfs = ntvfs_ctx->modules; in ntvfs_disconnect()
42 if (!ntvfs->ops->disconnect_fn) { in ntvfs_disconnect()
45 return ntvfs->ops->disconnect_fn(ntvfs); in ntvfs_disconnect()
52 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_async_setup() local
53 if (!ntvfs->ops->async_setup_fn) { in ntvfs_async_setup()
56 return ntvfs->ops->async_setup_fn(ntvfs, req, private_data); in ntvfs_async_setup()
62 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_fsinfo() local
63 if (!ntvfs->ops->fsinfo_fn) { in ntvfs_fsinfo()
66 return ntvfs->ops->fsinfo_fn(ntvfs, req, fs); in ntvfs_fsinfo()
72 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_unlink() local
73 if (!ntvfs->ops->unlink_fn) { in ntvfs_unlink()
76 return ntvfs->ops->unlink_fn(ntvfs, req, unl); in ntvfs_unlink()
81 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_chkpath() local
82 if (!ntvfs->ops->chkpath_fn) { in ntvfs_chkpath()
85 return ntvfs->ops->chkpath_fn(ntvfs, req, cp); in ntvfs_chkpath()
90 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_qpathinfo() local
91 if (!ntvfs->ops->qpathinfo_fn) { in ntvfs_qpathinfo()
94 return ntvfs->ops->qpathinfo_fn(ntvfs, req, st); in ntvfs_qpathinfo()
99 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_setpathinfo() local
100 if (!ntvfs->ops->setpathinfo_fn) { in ntvfs_setpathinfo()
103 return ntvfs->ops->setpathinfo_fn(ntvfs, req, st); in ntvfs_setpathinfo()
108 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_open() local
109 if (!ntvfs->ops->open_fn) { in ntvfs_open()
112 return ntvfs->ops->open_fn(ntvfs, req, oi); in ntvfs_open()
117 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_mkdir() local
118 if (!ntvfs->ops->mkdir_fn) { in ntvfs_mkdir()
121 return ntvfs->ops->mkdir_fn(ntvfs, req, md); in ntvfs_mkdir()
126 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_rmdir() local
127 if (!ntvfs->ops->rmdir_fn) { in ntvfs_rmdir()
130 return ntvfs->ops->rmdir_fn(ntvfs, req, rd); in ntvfs_rmdir()
135 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_rename() local
136 if (!ntvfs->ops->rename_fn) { in ntvfs_rename()
139 return ntvfs->ops->rename_fn(ntvfs, req, ren); in ntvfs_rename()
144 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_copy() local
145 if (!ntvfs->ops->copy_fn) { in ntvfs_copy()
148 return ntvfs->ops->copy_fn(ntvfs, req, cp); in ntvfs_copy()
155 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_search_first() local
156 if (!ntvfs->ops->search_first_fn) { in ntvfs_search_first()
159 return ntvfs->ops->search_first_fn(ntvfs, req, io, private_data, ntvfs_callback); in ntvfs_search_first()
165 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_search_next() local
166 if (!ntvfs->ops->search_next_fn) { in ntvfs_search_next()
169 return ntvfs->ops->search_next_fn(ntvfs, req, io, private_data, ntvfs_callback); in ntvfs_search_next()
174 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_search_close() local
175 if (!ntvfs->ops->search_close_fn) { in ntvfs_search_close()
178 return ntvfs->ops->search_close_fn(ntvfs, req, io); in ntvfs_search_close()
184 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_ioctl() local
185 if (!ntvfs->ops->ioctl_fn) { in ntvfs_ioctl()
188 return ntvfs->ops->ioctl_fn(ntvfs, req, io); in ntvfs_ioctl()
193 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_read() local
194 if (!ntvfs->ops->read_fn) { in ntvfs_read()
197 return ntvfs->ops->read_fn(ntvfs, req, io); in ntvfs_read()
202 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_write() local
203 if (!ntvfs->ops->write_fn) { in ntvfs_write()
206 return ntvfs->ops->write_fn(ntvfs, req, io); in ntvfs_write()
211 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_seek() local
212 if (!ntvfs->ops->seek_fn) { in ntvfs_seek()
215 return ntvfs->ops->seek_fn(ntvfs, req, io); in ntvfs_seek()
221 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_flush() local
222 if (!ntvfs->ops->flush_fn) { in ntvfs_flush()
225 return ntvfs->ops->flush_fn(ntvfs, req, flush); in ntvfs_flush()
230 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_lock() local
231 if (!ntvfs->ops->lock_fn) { in ntvfs_lock()
234 return ntvfs->ops->lock_fn(ntvfs, req, lck); in ntvfs_lock()
239 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_qfileinfo() local
240 if (!ntvfs->ops->qfileinfo_fn) { in ntvfs_qfileinfo()
243 return ntvfs->ops->qfileinfo_fn(ntvfs, req, info); in ntvfs_qfileinfo()
248 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_setfileinfo() local
249 if (!ntvfs->ops->setfileinfo_fn) { in ntvfs_setfileinfo()
252 return ntvfs->ops->setfileinfo_fn(ntvfs, req, info); in ntvfs_setfileinfo()
257 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_close() local
258 if (!ntvfs->ops->close_fn) { in ntvfs_close()
261 return ntvfs->ops->close_fn(ntvfs, req, io); in ntvfs_close()
267 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_trans() local
268 if (!ntvfs->ops->trans_fn) { in ntvfs_trans()
271 return ntvfs->ops->trans_fn(ntvfs, req, trans); in ntvfs_trans()
277 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_trans2() local
278 if (!ntvfs->ops->trans2_fn) { in ntvfs_trans2()
281 return ntvfs->ops->trans2_fn(ntvfs, req, trans2); in ntvfs_trans2()
287 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_lpq() local
288 if (!ntvfs->ops->lpq_fn) { in ntvfs_lpq()
291 return ntvfs->ops->lpq_fn(ntvfs, req, lpq); in ntvfs_lpq()
297 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_logoff() local
298 if (!ntvfs->ops->logoff_fn) { in ntvfs_logoff()
301 return ntvfs->ops->logoff_fn(ntvfs, req); in ntvfs_logoff()
306 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_exit() local
307 if (!ntvfs->ops->exit_fn) { in ntvfs_exit()
310 return ntvfs->ops->exit_fn(ntvfs, req); in ntvfs_exit()
318 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_notify() local
319 if (!ntvfs->ops->notify_fn) { in ntvfs_notify()
322 return ntvfs->ops->notify_fn(ntvfs, req, info); in ntvfs_notify()
330 struct ntvfs_module_context *ntvfs = req->ctx->modules; in ntvfs_cancel() local
331 if (!ntvfs->ops->cancel_fn) { in ntvfs_cancel()
334 return ntvfs->ops->cancel_fn(ntvfs, req); in ntvfs_cancel()
338 NTSTATUS ntvfs_next_connect(struct ntvfs_module_context *ntvfs, in ntvfs_next_connect() argument
342 if (!ntvfs->next || !ntvfs->next->ops->connect_fn) { in ntvfs_next_connect()
345 return ntvfs->next->ops->connect_fn(ntvfs->next, req, tcon); in ntvfs_next_connect()
348 NTSTATUS ntvfs_next_disconnect(struct ntvfs_module_context *ntvfs) in ntvfs_next_disconnect() argument
350 if (!ntvfs->next || !ntvfs->next->ops->disconnect_fn) { in ntvfs_next_disconnect()
353 return ntvfs->next->ops->disconnect_fn(ntvfs->next); in ntvfs_next_disconnect()
357 NTSTATUS ntvfs_next_async_setup(struct ntvfs_module_context *ntvfs, in ntvfs_next_async_setup() argument
361 if (!ntvfs->next || !ntvfs->next->ops->async_setup_fn) { in ntvfs_next_async_setup()
364 return ntvfs->next->ops->async_setup_fn(ntvfs->next, req, private_data); in ntvfs_next_async_setup()
368 NTSTATUS ntvfs_next_fsinfo(struct ntvfs_module_context *ntvfs, in ntvfs_next_fsinfo() argument
372 if (!ntvfs->next || !ntvfs->next->ops->fsinfo_fn) { in ntvfs_next_fsinfo()
375 return ntvfs->next->ops->fsinfo_fn(ntvfs->next, req, fs); in ntvfs_next_fsinfo()
379 NTSTATUS ntvfs_next_unlink(struct ntvfs_module_context *ntvfs, in ntvfs_next_unlink() argument
383 if (!ntvfs->next || !ntvfs->next->ops->unlink_fn) { in ntvfs_next_unlink()
386 return ntvfs->next->ops->unlink_fn(ntvfs->next, req, unl); in ntvfs_next_unlink()
389 NTSTATUS ntvfs_next_chkpath(struct ntvfs_module_context *ntvfs, in ntvfs_next_chkpath() argument
393 if (!ntvfs->next || !ntvfs->next->ops->chkpath_fn) { in ntvfs_next_chkpath()
396 return ntvfs->next->ops->chkpath_fn(ntvfs->next, req, cp); in ntvfs_next_chkpath()
399 NTSTATUS ntvfs_next_qpathinfo(struct ntvfs_module_context *ntvfs, in ntvfs_next_qpathinfo() argument
403 if (!ntvfs->next || !ntvfs->next->ops->qpathinfo_fn) { in ntvfs_next_qpathinfo()
406 return ntvfs->next->ops->qpathinfo_fn(ntvfs->next, req, st); in ntvfs_next_qpathinfo()
409 NTSTATUS ntvfs_next_setpathinfo(struct ntvfs_module_context *ntvfs, in ntvfs_next_setpathinfo() argument
413 if (!ntvfs->next || !ntvfs->next->ops->setpathinfo_fn) { in ntvfs_next_setpathinfo()
416 return ntvfs->next->ops->setpathinfo_fn(ntvfs->next, req, st); in ntvfs_next_setpathinfo()
419 NTSTATUS ntvfs_next_mkdir(struct ntvfs_module_context *ntvfs, in ntvfs_next_mkdir() argument
423 if (!ntvfs->next || !ntvfs->next->ops->mkdir_fn) { in ntvfs_next_mkdir()
426 return ntvfs->next->ops->mkdir_fn(ntvfs->next, req, md); in ntvfs_next_mkdir()
429 NTSTATUS ntvfs_next_rmdir(struct ntvfs_module_context *ntvfs, in ntvfs_next_rmdir() argument
433 if (!ntvfs->next || !ntvfs->next->ops->rmdir_fn) { in ntvfs_next_rmdir()
436 return ntvfs->next->ops->rmdir_fn(ntvfs->next, req, rd); in ntvfs_next_rmdir()
439 NTSTATUS ntvfs_next_rename(struct ntvfs_module_context *ntvfs, in ntvfs_next_rename() argument
443 if (!ntvfs->next || !ntvfs->next->ops->rename_fn) { in ntvfs_next_rename()
446 return ntvfs->next->ops->rename_fn(ntvfs->next, req, ren); in ntvfs_next_rename()
449 NTSTATUS ntvfs_next_copy(struct ntvfs_module_context *ntvfs, in ntvfs_next_copy() argument
453 if (!ntvfs->next || !ntvfs->next->ops->copy_fn) { in ntvfs_next_copy()
456 return ntvfs->next->ops->copy_fn(ntvfs->next, req, cp); in ntvfs_next_copy()
459 NTSTATUS ntvfs_next_open(struct ntvfs_module_context *ntvfs, in ntvfs_next_open() argument
463 if (!ntvfs->next || !ntvfs->next->ops->open_fn) { in ntvfs_next_open()
466 return ntvfs->next->ops->open_fn(ntvfs->next, req, oi); in ntvfs_next_open()
471 NTSTATUS ntvfs_next_search_first(struct ntvfs_module_context *ntvfs, in ntvfs_next_search_first() argument
476 if (!ntvfs->next || !ntvfs->next->ops->search_first_fn) { in ntvfs_next_search_first()
479 return ntvfs->next->ops->search_first_fn(ntvfs->next, req, io, private_data, callback); in ntvfs_next_search_first()
482 NTSTATUS ntvfs_next_search_next(struct ntvfs_module_context *ntvfs, in ntvfs_next_search_next() argument
487 if (!ntvfs->next || !ntvfs->next->ops->search_next_fn) { in ntvfs_next_search_next()
490 return ntvfs->next->ops->search_next_fn(ntvfs->next, req, io, private_data, callback); in ntvfs_next_search_next()
493 NTSTATUS ntvfs_next_search_close(struct ntvfs_module_context *ntvfs, in ntvfs_next_search_close() argument
497 if (!ntvfs->next || !ntvfs->next->ops->search_close_fn) { in ntvfs_next_search_close()
500 return ntvfs->next->ops->search_close_fn(ntvfs->next, req, io); in ntvfs_next_search_close()
504 NTSTATUS ntvfs_next_ioctl(struct ntvfs_module_context *ntvfs, in ntvfs_next_ioctl() argument
508 if (!ntvfs->next || !ntvfs->next->ops->ioctl_fn) { in ntvfs_next_ioctl()
511 return ntvfs->next->ops->ioctl_fn(ntvfs->next, req, io); in ntvfs_next_ioctl()
514 NTSTATUS ntvfs_next_read(struct ntvfs_module_context *ntvfs, in ntvfs_next_read() argument
518 if (!ntvfs->next || !ntvfs->next->ops->read_fn) { in ntvfs_next_read()
521 return ntvfs->next->ops->read_fn(ntvfs->next, req, io); in ntvfs_next_read()
524 NTSTATUS ntvfs_next_write(struct ntvfs_module_context *ntvfs, in ntvfs_next_write() argument
528 if (!ntvfs->next || !ntvfs->next->ops->write_fn) { in ntvfs_next_write()
531 return ntvfs->next->ops->write_fn(ntvfs->next, req, io); in ntvfs_next_write()
534 NTSTATUS ntvfs_next_seek(struct ntvfs_module_context *ntvfs, in ntvfs_next_seek() argument
538 if (!ntvfs->next || !ntvfs->next->ops->seek_fn) { in ntvfs_next_seek()
541 return ntvfs->next->ops->seek_fn(ntvfs->next, req, io); in ntvfs_next_seek()
544 NTSTATUS ntvfs_next_flush(struct ntvfs_module_context *ntvfs, in ntvfs_next_flush() argument
548 if (!ntvfs->next || !ntvfs->next->ops->flush_fn) { in ntvfs_next_flush()
551 return ntvfs->next->ops->flush_fn(ntvfs->next, req, flush); in ntvfs_next_flush()
554 NTSTATUS ntvfs_next_lock(struct ntvfs_module_context *ntvfs, in ntvfs_next_lock() argument
558 if (!ntvfs->next || !ntvfs->next->ops->lock_fn) { in ntvfs_next_lock()
561 return ntvfs->next->ops->lock_fn(ntvfs->next, req, lck); in ntvfs_next_lock()
564 NTSTATUS ntvfs_next_qfileinfo(struct ntvfs_module_context *ntvfs, in ntvfs_next_qfileinfo() argument
568 if (!ntvfs->next || !ntvfs->next->ops->qfileinfo_fn) { in ntvfs_next_qfileinfo()
571 return ntvfs->next->ops->qfileinfo_fn(ntvfs->next, req, info); in ntvfs_next_qfileinfo()
574 NTSTATUS ntvfs_next_setfileinfo(struct ntvfs_module_context *ntvfs, in ntvfs_next_setfileinfo() argument
578 if (!ntvfs->next || !ntvfs->next->ops->setfileinfo_fn) { in ntvfs_next_setfileinfo()
581 return ntvfs->next->ops->setfileinfo_fn(ntvfs->next, req, info); in ntvfs_next_setfileinfo()
584 NTSTATUS ntvfs_next_close(struct ntvfs_module_context *ntvfs, in ntvfs_next_close() argument
588 if (!ntvfs->next || !ntvfs->next->ops->close_fn) { in ntvfs_next_close()
591 return ntvfs->next->ops->close_fn(ntvfs->next, req, io); in ntvfs_next_close()
595 NTSTATUS ntvfs_next_trans(struct ntvfs_module_context *ntvfs, in ntvfs_next_trans() argument
599 if (!ntvfs->next || !ntvfs->next->ops->trans_fn) { in ntvfs_next_trans()
602 return ntvfs->next->ops->trans_fn(ntvfs->next, req, trans); in ntvfs_next_trans()
608 NTSTATUS ntvfs_next_notify(struct ntvfs_module_context *ntvfs, in ntvfs_next_notify() argument
612 if (!ntvfs->next || !ntvfs->next->ops->notify_fn) { in ntvfs_next_notify()
615 return ntvfs->next->ops->notify_fn(ntvfs->next, req, info); in ntvfs_next_notify()
619 NTSTATUS ntvfs_next_cancel(struct ntvfs_module_context *ntvfs, in ntvfs_next_cancel() argument
622 if (!ntvfs->next || !ntvfs->next->ops->cancel_fn) { in ntvfs_next_cancel()
625 return ntvfs->next->ops->cancel_fn(ntvfs->next, req); in ntvfs_next_cancel()
629 NTSTATUS ntvfs_next_lpq(struct ntvfs_module_context *ntvfs, in ntvfs_next_lpq() argument
633 if (!ntvfs->next || !ntvfs->next->ops->lpq_fn) { in ntvfs_next_lpq()
636 return ntvfs->next->ops->lpq_fn(ntvfs->next, req, lpq); in ntvfs_next_lpq()
641 NTSTATUS ntvfs_next_logoff(struct ntvfs_module_context *ntvfs, in ntvfs_next_logoff() argument
644 if (!ntvfs->next || !ntvfs->next->ops->logoff_fn) { in ntvfs_next_logoff()
647 return ntvfs->next->ops->logoff_fn(ntvfs->next, req); in ntvfs_next_logoff()
650 NTSTATUS ntvfs_next_exit(struct ntvfs_module_context *ntvfs, in ntvfs_next_exit() argument
653 if (!ntvfs->next || !ntvfs->next->ops->exit_fn) { in ntvfs_next_exit()
656 return ntvfs->next->ops->exit_fn(ntvfs->next, req); in ntvfs_next_exit()
660 NTSTATUS ntvfs_set_addresses(struct ntvfs_context *ntvfs, in ntvfs_set_addresses() argument
664 ntvfs->client.local_address = tsocket_address_copy(local_address, ntvfs); in ntvfs_set_addresses()
665 NT_STATUS_HAVE_NO_MEMORY(ntvfs->client.local_address); in ntvfs_set_addresses()
667 ntvfs->client.remote_address = tsocket_address_copy(remote_address, ntvfs); in ntvfs_set_addresses()
668 NT_STATUS_HAVE_NO_MEMORY(ntvfs->client.remote_address); in ntvfs_set_addresses()
673 const struct tsocket_address *ntvfs_get_local_address(struct ntvfs_module_context *ntvfs) in ntvfs_get_local_address() argument
675 return ntvfs->ctx->client.local_address; in ntvfs_get_local_address()
678 const struct tsocket_address *ntvfs_get_remote_address(struct ntvfs_module_context *ntvfs) in ntvfs_get_remote_address() argument
680 return ntvfs->ctx->client.remote_address; in ntvfs_get_remote_address()
684 NTSTATUS ntvfs_set_oplock_handler(struct ntvfs_context *ntvfs, in ntvfs_set_oplock_handler() argument
688 ntvfs->oplock.handler = handler; in ntvfs_set_oplock_handler()
689 ntvfs->oplock.private_data = private_data; in ntvfs_set_oplock_handler()
693 NTSTATUS ntvfs_send_oplock_break(struct ntvfs_module_context *ntvfs, in ntvfs_send_oplock_break() argument
696 if (!ntvfs->ctx->oplock.handler) { in ntvfs_send_oplock_break()
700 return ntvfs->ctx->oplock.handler(ntvfs->ctx->oplock.private_data, handle, level); in ntvfs_send_oplock_break()