diff options
author | Surya Prakki <Surya.Prakki@Sun.COM> | 2009-07-15 00:07:13 -0700 |
---|---|---|
committer | Surya Prakki <Surya.Prakki@Sun.COM> | 2009-07-15 00:07:13 -0700 |
commit | fb9b0aa8c76ff829a7069d38161a2cecc656b091 (patch) | |
tree | e37522fcc8f760240b049c073ab359eaf817c2e6 /usr/src/lib/libproc/common | |
parent | c946faca5d4627284fb79c6b04e652b471034495 (diff) | |
download | illumos-joyent-fb9b0aa8c76ff829a7069d38161a2cecc656b091.tar.gz |
6757037 Zone-spawned LWP needs to be able to run on a processor set
Diffstat (limited to 'usr/src/lib/libproc/common')
-rw-r--r-- | usr/src/lib/libproc/common/libproc.h | 2 | ||||
-rw-r--r-- | usr/src/lib/libproc/common/llib-lproc | 3 | ||||
-rw-r--r-- | usr/src/lib/libproc/common/mapfile-vers | 1 | ||||
-rw-r--r-- | usr/src/lib/libproc/common/pr_pbind.c | 72 |
4 files changed, 4 insertions, 74 deletions
diff --git a/usr/src/lib/libproc/common/libproc.h b/usr/src/lib/libproc/common/libproc.h index c9807a4da7..a425d3c211 100644 --- a/usr/src/lib/libproc/common/libproc.h +++ b/usr/src/lib/libproc/common/libproc.h @@ -354,8 +354,6 @@ extern int pr_getsockopt(struct ps_prochandle *, int, int, int, void *, int *); extern int pr_processor_bind(struct ps_prochandle *, idtype_t, id_t, int, int *); -extern int pr_pset_bind(struct ps_prochandle *, - int, idtype_t, id_t, int *); /* * Function prototypes for accessing per-LWP register information. diff --git a/usr/src/lib/libproc/common/llib-lproc b/usr/src/lib/libproc/common/llib-lproc index 2faf27865d..9626e80024 100644 --- a/usr/src/lib/libproc/common/llib-lproc +++ b/usr/src/lib/libproc/common/llib-lproc @@ -22,7 +22,7 @@ /* PROTOLIB1 */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #include "libproc.h" @@ -304,7 +304,6 @@ int pr_access(struct ps_prochandle *Pr, const char *path, int amode); /* pr_pbind.c */ int pr_processor_bind(struct ps_prochandle *Pr, idtype_t, id_t, int, int *); -int pr_pset_bind(struct ps_prochandle *Pr, int, idtype_t, id_t, int *); /* pr_rename.c */ int pr_rename(struct ps_prochandle *Pr, const char *old, const char *new); diff --git a/usr/src/lib/libproc/common/mapfile-vers b/usr/src/lib/libproc/common/mapfile-vers index 555ad60c31..8fff0bb1aa 100644 --- a/usr/src/lib/libproc/common/mapfile-vers +++ b/usr/src/lib/libproc/common/mapfile-vers @@ -220,7 +220,6 @@ SUNWprivate_1.1 { proc_walk; pr_open; pr_processor_bind; - pr_pset_bind; pr_rename; pr_setitimer; pr_setprojrctl; diff --git a/usr/src/lib/libproc/common/pr_pbind.c b/usr/src/lib/libproc/common/pr_pbind.c index 1a9f6de689..889a493eaa 100644 --- a/usr/src/lib/libproc/common/pr_pbind.c +++ b/usr/src/lib/libproc/common/pr_pbind.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,12 +19,10 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/types.h> #include <sys/procset.h> #include <sys/processor.h> @@ -90,66 +87,3 @@ pr_processor_bind(struct ps_prochandle *Pr, idtype_t idtype, id_t id, } return (rval.sys_rval1); } - -int -pr_pset_bind(struct ps_prochandle *Pr, int pset, idtype_t idtype, id_t id, - int *opset) -{ - sysret_t rval; /* return value */ - argdes_t argd[5]; /* arg descriptors */ - argdes_t *adp = &argd[0]; /* first argument */ - int error; - - if (Pr == NULL) /* no subject process */ - return (pset_bind(pset, idtype, id, opset)); - - adp->arg_value = PSET_BIND; /* PSET_BIND */ - adp->arg_object = NULL; - adp->arg_type = AT_BYVAL; - adp->arg_inout = AI_INPUT; - adp->arg_size = 0; - adp++; - - adp->arg_value = pset; /* pset */ - adp->arg_object = NULL; - adp->arg_type = AT_BYVAL; - adp->arg_inout = AI_INPUT; - adp->arg_size = 0; - adp++; - - adp->arg_value = idtype; /* idtype */ - adp->arg_object = NULL; - adp->arg_type = AT_BYVAL; - adp->arg_inout = AI_INPUT; - adp->arg_size = 0; - adp++; - - adp->arg_value = id; /* id */ - adp->arg_object = NULL; - adp->arg_type = AT_BYVAL; - adp->arg_inout = AI_INPUT; - adp->arg_size = 0; - adp++; - - if (opset == NULL) { - adp->arg_value = 0; /* opset */ - adp->arg_object = NULL; - adp->arg_type = AT_BYVAL; - adp->arg_inout = AI_INPUT; - adp->arg_size = 0; - } else { - adp->arg_value = 0; - adp->arg_object = opset; - adp->arg_type = AT_BYREF; - adp->arg_inout = AI_INOUT; - adp->arg_size = sizeof (int); - } - - error = Psyscall(Pr, &rval, SYS_pset, 5, &argd[0]); - - if (error) { - errno = (error < 0)? ENOSYS : error; - return (-1); - } - return (rval.sys_rval1); -} |