| template | Specifies a template previously created by create_template or the default template, (template = NULL). |
| length | The address of a timespec_t variable in which to store the length of the template. |
| KERN_SUCCESS | The call was successful. |
| KERN_INVALID_ARGUMENT | template is invalid. |