Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* [Q] about system call .
@ 1994-10-25 15:30 �w�í^��
  1994-10-28 13:06 ` Jeffrey M. Denham
  0 siblings, 1 reply; 2+ messages in thread
From: �w�í^�� @ 1994-10-25 15:30 UTC (permalink / raw)


Could someone help me ?
I have try some system call on osf/1 
like:

1.processor_set_create
kern_return_t processor_set_create(host_t HOST,
		                   processor_set_t *NEW_SET,
		                   proessor_set_name_t *NEW_NAME)

2.processor_assign
kern_return_t processor_assign(processor_t PROCESSOR,
			       processor_set_t NEW_SET,
			       boolean_t WAIT)

I don't know how to use those function.
What kind of value the HOST and PROCESSOR will be ?
Teach me how to use those functions or where can find some FAQs or examples .

This is my time to write a program on osf/1.
Maybe it's a stupid question.

Anyway, thank you for any help!!

--
/Why do we love so carelessly/A broken heart can never feel the same/Why do
we make everthing so hollow and then borrow/Someone's love, selfishly. /Why
do we take the easy way/No looking back , you never see the pain/Why do we
hurt people who we care for and would bear for/If we thought with 
understanding and with caring in our hearts/If we could see, if only we
could see/All the love we lost - carelessly./Why do you take and not
return/No going back, you never meet again/Why do we think always of our
selfish need and go with greed/When if we knew with certainty and caring in
our hearts/If we could see, if only we could see, all the love we lost/all
the love we lost -carelessly./  ---------  Careless Love [Song by Chyi Yu]


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Q] about system call .
  1994-10-25 15:30 [Q] about system call �w�í^��
@ 1994-10-28 13:06 ` Jeffrey M. Denham
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey M. Denham @ 1994-10-28 13:06 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1960 bytes --]


In article <38j8bd$nib@news.csie.nctu.edu.tw>, Der@aho.cis.nctu.edu.tw (�w�í^��) writes:
|>Could someone help me ?
|>I have try some system call on osf/1 
|>like:
|>
|>1.processor_set_create
|>kern_return_t processor_set_create(host_t HOST,
|>		                   processor_set_t *NEW_SET,
|>		                   proessor_set_name_t *NEW_NAME)
|>
|>2.processor_assign
|>kern_return_t processor_assign(processor_t PROCESSOR,
|>			       processor_set_t NEW_SET,
|>			       boolean_t WAIT)
|>
|>I don't know how to use those function.
|>What kind of value the HOST and PROCESSOR will be ?
|>Teach me how to use those functions or where can find some FAQs or examples .

If you're talking about DEC OSF/1, those Mach calls do not exist.

Something similar will be available in DEC OSF/1 V3.2 (now in field test):

int create_pset(void)
	returns the ID of a new processor set


int assign_cpu_to_pset(long cpu, long pset_id, long flags)
	assigns the specified cpu to the specified pset; flags can be
	ANY_CPU, in which case "cpu" says how many cpus to assign.

int assign_pi_to_pset(pid_t *pid_list, long npids, long pset_id, long flags)
	assigns npids PIDs in the PID list to the specified pset_id; flags
	can be PSET_EXCLUSIVE, which give the assigned PIDs exclusive use
	of the processors in the pset.


The Mach syscalls you ask about are indeed used to support these new library
routines, but their direct use is not encouraged or supported.

V3.2 of DEC OSF/1 also supports some new commands for the administration
of MP systems:

pset_create: create a processor set
pset_destroy: nuke it
pset_assign_cpu: populate it with some processors
pset_assign_pid: populate it with some processos
pset_info: find out about psets
psrinfo: find out about processors
psradm: start or stop processors
runon: bind a command to a processor or processor set (perhaps exclusively)

Jeff

-------------------------
Speaking about Digital, but not for it, etc.....


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-10-28 13:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-25 15:30 [Q] about system call �w�í^��
1994-10-28 13:06 ` Jeffrey M. Denham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox