Lines Matching refs:qn
1188 fs_node *qn, *dummy; in websearchfs_open_query() local
1246 qn = SLL_FIND(ns->queries, qnext, in websearchfs_open_query()
1249 reused = (qn != NULL); in websearchfs_open_query()
1251 TRACE("open_query: reusing %" B_PRId32 ":%" B_PRId64 "\n", ns->nsid, qn->vnid); in websearchfs_open_query()
1252 err = get_vnode(_volume, qn->vnid, (void **)&dummy); /* inc ref count */ in websearchfs_open_query()
1256 while (!qn->qcompleted) in websearchfs_open_query()
1271 …err = websearchfs_create_gen(_volume, ns->root, qname, 0, 0755, NULL, &qn, folders_attrs, true, tr… in websearchfs_open_query()
1275 err = get_vnode(_volume, qn->vnid, (void **)&dummy); /* inc ref count */ in websearchfs_open_query()
1282 err = duckduckgo_request_open(qstring, _volume, qn, &qn->request); in websearchfs_open_query()
1288 err = duckduckgo_request_process(qn->request); in websearchfs_open_query()
1296 …err = websearchfs_create_gen(_volume, qn, "B", 0, 0644, NULL, &n, fake_bookmark_attrs, false, true… in websearchfs_open_query()
1312 SLL_INSERT(ns->queries, qnext, qn); in websearchfs_open_query()
1316 c->node = qn; in websearchfs_open_query()
1317 LOCK(&qn->l); in websearchfs_open_query()
1318 SLL_INSERT(qn->opened, next, c); in websearchfs_open_query()
1319 UNLOCK(&qn->l); in websearchfs_open_query()
1320 qn->qcompleted = 1; /* tell other cookies we're done */ in websearchfs_open_query()
1327 if (qn->request) in websearchfs_open_query()
1328 duckduckgo_request_close(qn->request); in websearchfs_open_query()
1330 put_vnode(_volume, qn->vnid); in websearchfs_open_query()
1333 websearchfs_unlink_gen(_volume, ns->root, qn->name); in websearchfs_open_query()
1439 fs_node *qn = request->query_node; in websearchfs_push_result_to_query() local
1444 …TRACE("push_result_to_query(%" B_PRId32 ", %" B_PRId64 ", %ld:'%s')\n", ns->nsid, qn->vnid, result… in websearchfs_push_result_to_query()
1447 if (!ns || !qn) in websearchfs_push_result_to_query()
1461 err = websearchfs_create_gen(_volume, qn, ename, 0, 0644, NULL, &n, bookmark_attrs, false, true); in websearchfs_push_result_to_query()