Print this page
XXX AVX procfs


 352 extern  int     pr_getpeerucred(struct ps_prochandle *, int, ucred_t **);
 353 extern  int     pr_getpeername(struct ps_prochandle *,
 354                         int, struct sockaddr *, socklen_t *);
 355 extern  int     pr_getsockname(struct ps_prochandle *,
 356                         int, struct sockaddr *, socklen_t *);
 357 extern  int     pr_getsockopt(struct ps_prochandle *,
 358                         int, int, int, void *, int *);
 359 extern  int     pr_processor_bind(struct ps_prochandle *,
 360                         idtype_t, id_t, int, int *);
 361 
 362 /*
 363  * Function prototypes for accessing per-LWP register information.
 364  */
 365 extern int Plwp_getregs(struct ps_prochandle *, lwpid_t, prgregset_t);
 366 extern int Plwp_setregs(struct ps_prochandle *, lwpid_t, const prgregset_t);
 367 
 368 extern int Plwp_getfpregs(struct ps_prochandle *, lwpid_t, prfpregset_t *);
 369 extern int Plwp_setfpregs(struct ps_prochandle *, lwpid_t,
 370     const prfpregset_t *);
 371 
 372 #if defined(__sparc)
 373 
 374 extern int Plwp_getxregs(struct ps_prochandle *, lwpid_t, prxregset_t *);
 375 extern int Plwp_setxregs(struct ps_prochandle *, lwpid_t, const prxregset_t *);
 376 


 377 extern int Plwp_getgwindows(struct ps_prochandle *, lwpid_t, gwindows_t *);
 378 
 379 #if defined(__sparcv9)
 380 extern int Plwp_getasrs(struct ps_prochandle *, lwpid_t, asrset_t);
 381 extern int Plwp_setasrs(struct ps_prochandle *, lwpid_t, const asrset_t);
 382 #endif  /* __sparcv9 */
 383 
 384 #endif  /* __sparc */
 385 
 386 #if defined(__i386) || defined(__amd64)
 387 extern  int     Pldt(struct ps_prochandle *, struct ssd *, int);
 388 extern  int     proc_get_ldt(pid_t, struct ssd *, int);
 389 #endif  /* __i386 || __amd64 */
 390 
 391 extern int Plwp_getpsinfo(struct ps_prochandle *, lwpid_t, lwpsinfo_t *);
 392 
 393 extern int Plwp_stack(struct ps_prochandle *, lwpid_t, stack_t *);
 394 extern int Plwp_main_stack(struct ps_prochandle *, lwpid_t, stack_t *);
 395 extern int Plwp_alt_stack(struct ps_prochandle *, lwpid_t, stack_t *);
 396 




 352 extern  int     pr_getpeerucred(struct ps_prochandle *, int, ucred_t **);
 353 extern  int     pr_getpeername(struct ps_prochandle *,
 354                         int, struct sockaddr *, socklen_t *);
 355 extern  int     pr_getsockname(struct ps_prochandle *,
 356                         int, struct sockaddr *, socklen_t *);
 357 extern  int     pr_getsockopt(struct ps_prochandle *,
 358                         int, int, int, void *, int *);
 359 extern  int     pr_processor_bind(struct ps_prochandle *,
 360                         idtype_t, id_t, int, int *);
 361 
 362 /*
 363  * Function prototypes for accessing per-LWP register information.
 364  */
 365 extern int Plwp_getregs(struct ps_prochandle *, lwpid_t, prgregset_t);
 366 extern int Plwp_setregs(struct ps_prochandle *, lwpid_t, const prgregset_t);
 367 
 368 extern int Plwp_getfpregs(struct ps_prochandle *, lwpid_t, prfpregset_t *);
 369 extern int Plwp_setfpregs(struct ps_prochandle *, lwpid_t,
 370     const prfpregset_t *);
 371 


 372 extern int Plwp_getxregs(struct ps_prochandle *, lwpid_t, prxregset_t *);
 373 extern int Plwp_setxregs(struct ps_prochandle *, lwpid_t, const prxregset_t *);
 374 
 375 #if defined(__sparc)
 376 
 377 extern int Plwp_getgwindows(struct ps_prochandle *, lwpid_t, gwindows_t *);
 378 
 379 #if defined(__sparcv9)
 380 extern int Plwp_getasrs(struct ps_prochandle *, lwpid_t, asrset_t);
 381 extern int Plwp_setasrs(struct ps_prochandle *, lwpid_t, const asrset_t);
 382 #endif  /* __sparcv9 */
 383 
 384 #endif  /* __sparc */
 385 
 386 #if defined(__i386) || defined(__amd64)
 387 extern  int     Pldt(struct ps_prochandle *, struct ssd *, int);
 388 extern  int     proc_get_ldt(pid_t, struct ssd *, int);
 389 #endif  /* __i386 || __amd64 */
 390 
 391 extern int Plwp_getpsinfo(struct ps_prochandle *, lwpid_t, lwpsinfo_t *);
 392 
 393 extern int Plwp_stack(struct ps_prochandle *, lwpid_t, stack_t *);
 394 extern int Plwp_main_stack(struct ps_prochandle *, lwpid_t, stack_t *);
 395 extern int Plwp_alt_stack(struct ps_prochandle *, lwpid_t, stack_t *);
 396