Lines Matching refs:se
35 return &req->se->cuse_data->clop; in req_clop()
154 struct fuse_session *se; in cuse_lowlevel_new() local
172 se = fuse_session_new(args, &lop, sizeof(lop), userdata); in cuse_lowlevel_new()
173 if (!se) { in cuse_lowlevel_new()
177 se->cuse_data = cd; in cuse_lowlevel_new()
179 return se; in cuse_lowlevel_new()
199 struct fuse_session *se = req->se; in cuse_lowlevel_init() local
200 struct cuse_data *cd = se->cuse_data; in cuse_lowlevel_init()
201 size_t bufsize = se->bufsize; in cuse_lowlevel_init()
205 if (se->debug) { in cuse_lowlevel_init()
209 se->conn.proto_major = arg->major; in cuse_lowlevel_init()
210 se->conn.proto_minor = arg->minor; in cuse_lowlevel_init()
211 se->conn.capable = 0; in cuse_lowlevel_init()
212 se->conn.want = 0; in cuse_lowlevel_init()
228 if (bufsize < se->conn.max_write) in cuse_lowlevel_init()
229 se->conn.max_write = bufsize; in cuse_lowlevel_init()
231 se->got_init = 1; in cuse_lowlevel_init()
232 if (se->op.init) in cuse_lowlevel_init()
233 se->op.init(se->userdata, &se->conn); in cuse_lowlevel_init()
240 outarg.max_write = se->conn.max_write; in cuse_lowlevel_init()
244 if (se->debug) { in cuse_lowlevel_init()
259 clop->init_done(se->userdata); in cuse_lowlevel_init()
275 struct fuse_session *se; in cuse_lowlevel_setup() local
299 se = cuse_lowlevel_new(&args, ci, clop, userdata); in cuse_lowlevel_setup()
300 if (se == NULL) in cuse_lowlevel_setup()
312 se->fd = fd; in cuse_lowlevel_setup()
314 res = fuse_set_signal_handlers(se); in cuse_lowlevel_setup()
323 return se; in cuse_lowlevel_setup()
326 fuse_remove_signal_handlers(se); in cuse_lowlevel_setup()
328 fuse_session_destroy(se); in cuse_lowlevel_setup()
335 void cuse_lowlevel_teardown(struct fuse_session *se) in cuse_lowlevel_teardown() argument
337 fuse_remove_signal_handlers(se); in cuse_lowlevel_teardown()
338 fuse_session_destroy(se); in cuse_lowlevel_teardown()
344 struct fuse_session *se; in cuse_lowlevel_main() local
348 se = cuse_lowlevel_setup(argc, argv, ci, clop, &multithreaded, in cuse_lowlevel_main()
350 if (se == NULL) in cuse_lowlevel_main()
355 res = fuse_session_loop_mt(se, config); in cuse_lowlevel_main()
359 res = fuse_session_loop(se); in cuse_lowlevel_main()
361 cuse_lowlevel_teardown(se); in cuse_lowlevel_main()