Home
last modified time | relevance | path

Searched refs:id_t (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_idspace.h40 id_t ide_id; /* identifier associated w/ element */
50 id_t ids_nextid; /* next identifier guess for alloc */
51 id_t ids_minid; /* minimum identifier value */
52 id_t ids_maxid; /* maximum identifier value */
53 id_t ids_count; /* number of allocated ids */
56 extern fmd_idspace_t *fmd_idspace_create(const char *, id_t, id_t);
59 void (*)(fmd_idspace_t *, id_t, void *), void *);
61 extern void *fmd_idspace_getspecific(fmd_idspace_t *, id_t);
62 extern void fmd_idspace_setspecific(fmd_idspace_t *, id_t, void *);
63 extern int fmd_idspace_contains(fmd_idspace_t *, id_t);
[all …]
H A Dfmd_idspace.c35 fmd_idspace_create(const char *name, id_t min, id_t max) in fmd_idspace_create()
95 void (*func)(fmd_idspace_t *, id_t, void *), void *arg) in fmd_idspace_apply() argument
98 id_t *ida, *idp; in fmd_idspace_apply()
103 ida = idp = fmd_alloc(sizeof (id_t) * count, FMD_SLEEP); in fmd_idspace_apply()
116 fmd_free(ida, sizeof (id_t) * count); in fmd_idspace_apply()
120 fmd_idspace_lookup(fmd_idspace_t *ids, id_t id) in fmd_idspace_lookup()
136 fmd_idspace_getspecific(fmd_idspace_t *ids, id_t id) in fmd_idspace_getspecific()
150 fmd_idspace_setspecific(fmd_idspace_t *ids, id_t id, void *data) in fmd_idspace_setspecific()
169 fmd_idspace_contains(fmd_idspace_t *ids, id_t id) in fmd_idspace_contains()
181 fmd_idspace_valid(fmd_idspace_t *ids, id_t id) in fmd_idspace_valid()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dpool.h89 extern int pool_create(int, int, id_t *);
90 extern int pool_destroy(int, int, id_t);
91 extern int pool_transfer(int, id_t, id_t, uint64_t);
92 extern int pool_assoc(poolid_t, int, id_t);
94 extern int pool_bind(poolid_t, idtype_t, id_t);
95 extern id_t pool_get_class(pool_t *);
96 extern int pool_do_bind(pool_t *, idtype_t, id_t, int);
97 extern int pool_query_binding(idtype_t, id_t, id_t *);
98 extern int pool_xtransfer(int, id_t, id_t, uint_t, id_t *);
100 extern int pool_propput(int, int, id_t, nvpair_t *);
[all …]
H A Dpool_impl.h115 id_t pc_i_id;
123 id_t pd_o_id;
141 id_t pa_o_res_id;
155 id_t pt_o_src_id;
156 id_t pt_o_tgt_id;
166 id_t px_o_src_id;
167 id_t px_o_tgt_id;
169 id_t *px_o_comp_list;
175 id_t px_o_src_id;
176 id_t px_o_tgt_id;
[all …]
H A Did_space.h40 id_space_t *id_space_create(const char *, id_t, id_t);
42 void id_space_extend(id_space_t *, id_t, id_t);
43 id_t id_alloc(id_space_t *);
44 id_t id_alloc_nosleep(id_space_t *);
45 id_t id_allocff(id_space_t *);
46 id_t id_allocff_nosleep(id_space_t *);
47 id_t id_alloc_specific_nosleep(id_space_t *, id_t);
48 void id_free(id_space_t *, id_t);
H A Dsmbios.h319 id_t smbb_chassis; /* chassis containing this board */
447 id_t smbp_l1cache; /* L1 cache handle */
448 id_t smbp_l2cache; /* L2 cache handle */
449 id_t smbp_l3cache; /* L3 cache handle */
1268 id_t smbma_err; /* handle of error (if any) */
1313 id_t smbmd_array; /* handle of physical memory array */
1314 id_t smbmd_error; /* handle of memory error data */
1445 id_t smbmam_array; /* physical memory array handle */
1456 id_t smbmdm_device; /* memory device handle */
1457 id_t smbmdm_arrmap; /* memory array mapped address handle */
[all …]
H A Dpghw.h77 #define PGHW_INSTANCE_ANON ((id_t)0xdecafbad)
117 id_t pghw_instance; /* sharing instance identifier */
143 id_t cpu_chipid; /* CPU's physical processor */
144 id_t cpu_coreid; /* CPU's physical core */
145 id_t cpu_cacheid; /* CPU's cache id */
167 extern pghw_t *pghw_find_by_instance(id_t, pghw_type_t);
173 extern id_t pg_plat_hw_instance_id(cpu_t *, pghw_type_t);
187 extern id_t pg_plat_get_core_id(cpu_t *);
H A Dpriocntl.h44 extern long priocntl(idtype_t, id_t, int, ...);
80 id_t pc_cid; /* class id */
86 id_t pc_cid; /* process class */
97 id_t pc_cid; /* class id */
149 id_t pc_cid; /* process class */
168 id_t pc_cid;
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_module.h72 int (*rcmop_get_info)(rcm_handle_t *, char *, id_t, uint_t,
74 int (*rcmop_request_suspend)(rcm_handle_t *, char *, id_t,
76 int (*rcmop_notify_resume)(rcm_handle_t *, char *, id_t, uint_t,
78 int (*rcmop_request_offline)(rcm_handle_t *, char *, id_t, uint_t,
80 int (*rcmop_notify_online)(rcm_handle_t *, char *, id_t, uint_t,
82 int (*rcmop_notify_remove)(rcm_handle_t *, char *, id_t, uint_t,
87 int (*rcmop_request_capacity_change)(rcm_handle_t *, char *, id_t,
89 int (*rcmop_notify_capacity_change)(rcm_handle_t *, char *, id_t,
91 int (*rcmop_notify_event)(rcm_handle_t *, char *, id_t, uint_t,
102 int (*rcmop_get_info)(rcm_handle_t *, char *, id_t, uint_t, char **,
[all …]
H A Dcluster_rcm.c55 static int cluster_getinfo(rcm_handle_t *, char *, id_t, uint_t,
57 static int cluster_suspend(rcm_handle_t *, char *, id_t,
59 static int cluster_resume(rcm_handle_t *, char *, id_t, uint_t,
61 static int cluster_offline(rcm_handle_t *, char *, id_t, uint_t,
63 static int cluster_online(rcm_handle_t *, char *, id_t, uint_t,
65 static int cluster_remove(rcm_handle_t *, char *, id_t, uint_t,
153 cluster_getinfo(rcm_handle_t *hdl, char *rsrcname, id_t id, uint_t flags, in cluster_getinfo()
167 cluster_suspend(rcm_handle_t *hdl, char *rsrcname, id_t id, in cluster_suspend()
179 cluster_resume(rcm_handle_t *hdl, char *rsrcname, id_t id, uint_t flags, in cluster_resume()
191 cluster_offline(rcm_handle_t *hdl, char *rsrcname, id_t id, uint_t flags, in cluster_offline()
[all …]
H A Dpool_rcm.c44 static int pool_get_info(rcm_handle_t *, char *, id_t, uint_t, char **,
46 static int pool_request_suspend(rcm_handle_t *, char *, id_t,
48 static int pool_notify_resume(rcm_handle_t *, char *, id_t, uint_t, char **,
50 static int pool_notify_remove(rcm_handle_t *, char *, id_t, uint_t,
52 static int pool_request_offline(rcm_handle_t *, char *, id_t, uint_t,
54 static int pool_notify_online(rcm_handle_t *, char *, id_t, uint_t, char **,
56 static int pool_request_capacity_change(rcm_handle_t *, char *, id_t, uint_t,
58 static int pool_notify_capacity_change(rcm_handle_t *, char *, id_t, uint_t,
359 pool_request_capacity_change(rcm_handle_t *hdl, char *rsrcname, id_t id, in pool_request_capacity_change()
384 pool_notify_capacity_change(rcm_handle_t *hdl, char *rsrcname, id_t id, in pool_notify_capacity_change()
[all …]
H A Dnetwork_rcm.c83 static int net_getinfo(rcm_handle_t *, char *, id_t, uint_t, char **,
85 static int net_suspend(rcm_handle_t *, char *, id_t, timespec_t *,
87 static int net_resume(rcm_handle_t *, char *, id_t, uint_t, char **,
89 static int net_offline(rcm_handle_t *, char *, id_t, uint_t, char **,
91 static int net_online(rcm_handle_t *, char *, id_t, uint_t, char **,
93 static int net_remove(rcm_handle_t *, char *, id_t, uint_t, char **,
95 static int net_notify_event(rcm_handle_t *, char *, id_t, uint_t,
370 net_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, in net_offline()
375 assert(id == (id_t)0); in net_offline()
391 net_online(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flag, char **reason, in net_online()
[all …]
/illumos-gate/usr/src/lib/libidspace/common/
H A Dlibidspace.h32 extern id_space_t *id_space_create(const char *, id_t, id_t);
34 extern void id_space_extend(id_space_t *, id_t, id_t);
35 extern id_t id_alloc(id_space_t *);
36 extern id_t id_allocff(id_space_t *);
37 extern id_t id_alloc_specific(id_space_t *, id_t);
38 extern void id_free(id_space_t *, id_t);
/illumos-gate/usr/src/common/idspace/
H A Did_space.c63 #define ADDR_TO_ID(addr) ((id_t)((uintptr_t)addr - 1))
71 id_space_create(const char *name, id_t low, id_t high) in id_space_create()
96 id_space_extend(id_space_t *isp, id_t low, id_t high) in id_space_extend()
110 id_t
126 id_t
136 id_t
152 id_t
162 id_t
163 id_alloc_specific_nosleep(id_space_t *isp, id_t id) in id_alloc_specific_nosleep()
181 id_free(id_space_t *isp, id_t id) in id_free()
/illumos-gate/usr/src/lib/libpctx/common/
H A Dlibpctx.h59 typedef int pctx_sysc_execfn_t(pctx_t *, pid_t, id_t, char *, void *);
60 typedef void pctx_sysc_forkfn_t(pctx_t *, pid_t, id_t, pid_t, void *);
61 typedef void pctx_sysc_exitfn_t(pctx_t *, pid_t, id_t, int, void *);
62 typedef int pctx_sysc_lwp_createfn_t(pctx_t *, pid_t, id_t, void *);
63 typedef int pctx_init_lwpfn_t(pctx_t *, pid_t, id_t, void *);
64 typedef int pctx_fini_lwpfn_t(pctx_t *, pid_t, id_t, void *);
65 typedef int pctx_sysc_lwp_exitfn_t(pctx_t *, pid_t, id_t, void *);
83 int (*tick)(pctx_t *, pid_t, id_t, void *));
91 extern int __pctx_cpc(pctx_t *, struct __cpc *, int, id_t,
/illumos-gate/usr/src/cmd/priocntl/
H A Dsubr.c138 id_t *id1p; in idcompar()
139 id_t *id2p;
148 id_t
156 return ((id_t)-1);
164 id_t *idptr;
171 *idptr = (id_t)getpid();
175 *idptr = (id_t)getppid();
179 *idptr = (id_t)getpgrp();
183 *idptr = (id_t)getsid(getpid());
196 *idptr = (id_t)getuid();
[all …]
H A Dpriocntl.h57 extern int idcompar(id_t *, id_t *);
58 extern id_t clname2cid(char *);
59 extern int getmyid(idtype_t, id_t *);
61 extern int verifyupri(idtype_t, id_t, char *, int, pri_t, char *);
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/common/
H A Dsw.h165 int (*swsub_init)(fmd_hdl_t *, id_t, const struct sw_disp **, int *);
167 void (*swsub_timeout)(fmd_hdl_t *, id_t, void *);
184 extern id_t sw_timer_install(fmd_hdl_t *, id_t, void *, fmd_event_t *,
186 extern void sw_timer_remove(fmd_hdl_t *, id_t, id_t);
242 extern fmd_case_t *swde_case_open(fmd_hdl_t *, id_t, char *, uint32_t,
244 extern fmd_case_t *swde_case_first(fmd_hdl_t *, id_t);
/illumos-gate/usr/src/uts/common/syscall/
H A Dlwpsys.c47 idtot(proc_t *p, id_t lwpid) in idtot()
64 idtot_and_lock(proc_t *p, id_t lwpid, kmutex_t **mpp) in idtot_and_lock()
81 syslwp_suspend(id_t lwpid) in syslwp_suspend()
99 syslwp_continue(id_t lwpid) in syslwp_continue()
115 lwp_kill(id_t lwpid, int sig) in lwp_kill()
173 lwp_wait(id_t lwpid, id_t *departed) in lwp_wait()
208 id_t tid; in lwp_wait()
232 copyout(&lwpid, departed, sizeof (id_t))) in lwp_wait()
279 copyout(&tid, departed, sizeof (id_t))) in lwp_wait()
360 lwp_detach(id_t lwpid) in lwp_detach()
[all …]
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dmachcpuvar.h178 id_t cpu_ipipe; /* cpu int exec unit id */
179 id_t cpu_mpipe; /* cpu memory pipe id */
180 id_t cpu_fpu; /* cpu fpu unit id */
181 id_t cpu_core; /* cpu core id */
182 id_t cpu_chip; /* cpu chip id */
235 id_t exec_unit_mapping;
236 id_t fpu_mapping;
237 id_t l2_cache_mapping;
238 id_t core_mapping;
/illumos-gate/usr/src/cmd/prstat/
H A Dprtable.h69 id_t l_lwpid;
85 extern void lwpid_add(lwp_info_t *, pid_t, id_t);
86 extern lwp_info_t *lwpid_get(pid_t, id_t);
88 extern void lwpid_del(pid_t, id_t);
89 extern void lwpid_set_active(pid_t, id_t);
90 extern int lwpid_is_active(pid_t, id_t);
/illumos-gate/usr/src/cmd/pbind/
H A Dpbind.c100 query_out(id_t pid, id_t lwpid, processorid_t cpu) in query_out()
125 bind_err(processorid_t cpu, id_t pid, id_t lwpid, int err) in bind_err()
152 bind_out(id_t pid, id_t lwpid, processorid_t old, processorid_t new) in bind_out()
183 grab_proc(id_t pid) in grab_proc()
218 bind_lwp(struct ps_prochandle *Pr, id_t pid, id_t lwpid, processorid_t cpu) in bind_lwp()
237 do_lwps(id_t pid, const char *range, processorid_t cpu) in do_lwps()
313 id_t pid = psinfo->pr_pid; in query_all_proc()
335 id_t pid = psinfo->pr_pid; in query_all_lwp()
336 id_t lwpid = lwpsinfo->pr_lwpid; in query_all_lwp()
400 id_t pid; in main()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_smbios.c50 id_t cpu_id;
56 id_t dimm_id;
57 id_t extdimm_id;
62 id_t extmct_id;
63 id_t mct_id;
64 id_t p_id;
96 extdimmslot_to_dimmslot(topo_mod_t *mod, id_t chip_smbid, int channum, in extdimmslot_to_dimmslot()
190 id_t
197 id_t dimmslot = -1; in memnode_to_smbiosid()
210 *((id_t *)data) = dimmslot % (dimmsmb[0].dimm_id); in memnode_to_smbiosid()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi_bboard.c201 id_t *cid; in x86pi_bb_getchips()
248 id_t
249 x86pi_bb_topparent(topo_mod_t *mod, int index, tnode_t **pnode, id_t *psmbid) in x86pi_bb_topparent()
252 id_t top_bb_smbid = -1; in x86pi_bb_topparent()
253 id_t smb_id; in x86pi_bb_topparent()
303 id_t
304 x86pi_bb_chassis(topo_mod_t *mod, id_t bb_smbid) in x86pi_bb_chassis()
326 id_t smb_id; in x86pi_bb_contains()
358 id_t *cont_hdl; in x86pi_bb_contains()
363 sizeof (id_t)); in x86pi_bb_contains()
[all …]
H A Dx86pi_impl.h100 id_t id; /* smbios struct id */
101 id_t con_cnt; /* containee count */
102 id_t con_ids[SMB_MAX_ID]; /* containee ids */
103 id_t con_by_id; /* container id */
201 id_t x86pi_bb_topparent(topo_mod_t *, int, tnode_t **, id_t *);

12345678910>>...13