Lines Matching refs:path
42 * A process's core file path and content live in separate reference-counted
51 * At system and zone boot, init_core() sets init(1M)'s core file path and
59 * settings; when processes enter a non-global zone, their core file path and
60 * content are set to the zone's default path and content.
69 static int set_proc_info(pid_t pid, const char *path, core_content_t content);
118 corectl_path_alloc(const char *path)
123 ccp->ccp_path = refstr_alloc(path);
132 refstr_t *path;
135 refstr_hold(path = ccp->ccp_path);
138 return (path);
142 corectl_path_set(corectl_path_t *ccp, const char *path)
144 refstr_t *npath = refstr_alloc(path);
207 * Called from start_init_common(), to set init's core file path and content.
225 * global zone, which sets up the default path and content
244 char *path;
315 path = kmem_alloc(size, KM_SLEEP);
316 error = copyinstr((char *)arg1, path, size, NULL);
319 error = set_proc_info((pid_t)arg3, path, 0);
321 corectl_path_set(cg->core_default_path, path);
322 } else if (*path != '\0' && *path != '/') {
325 refstr_t *nrp = refstr_alloc(path);
329 if (*path == '\0')
341 kmem_free(path, size);
463 set_proc_info(pid_t pid, const char *path, core_content_t content)
471 * Only one of the core file path or content can be set at a time.
473 if (path != NULL) {
474 counter.cc_path = corectl_path_alloc(path);
521 if (path != NULL)