## processor_get_assignment

Function - Get current assignment for a processor.

### SYNOPSIS

    kern_return_t	processor_get_assignment
    		(processor_t	processor,
    		processor_set_name_t	assigned_set);

### PARAMETERS

processor
  [in processor send right] The processor whose assignment is desired.
new_set
  [out processor-set-name send right] The name port for the processor set to which processor is currently assigned.

### DESCRIPTION

The processor_get_assignment function returns the name port for the processor set to which a desired processor is currently assigned.

### RETURN VALUES

KERN_FAILURE
  Processor is either shut down of off-line.

### RELATED INFORMATION

Functions: processor_assign, processor_set_create, processor_info, task_assign, thread_assign.