NAME

fttl_create_template - Creates a timeline template to contain periodic threads.

SYNOPSIS

kern_return_t fttl_create_template(length, template)
timespec_t length;
ft_template_t template;

DESCRIPTION

The fttl_create_template function creates a new periodic timeline template. The length of the template in seconds.nanoseconds is specified by length. Typically the length of the template is chosen to be the least common multiple of the periods of the threads to be scheduled on the template. An identifier for the new template is returned in template. This identifier can be used in any other system calls that require a template identifier.

PARAMETERS

length The length in seconds.nanoseconds for the new template.
template template A pointer to a location to store the template identif- ier.

RETURN VALUE

KERN_SUCCESS A new periodic timeline template has been created
KERN_INVALID_ARGUMENT template is invalid.
KERN_INVALID_VALUE contains an invalid time specification.
KERN_FAILURE There is not enough memory to create the template.

RELATED INFORMATION

Functions:

rt_thread_exit, thread_create, thread_terminate, thread_get_attribute, thread_set_attribute, fttl_thread_create, fttl_thread_attribute_init, rt_set_scheduling_policy, fttl_set_fault_flag, fttl_set_fault_interval, fttl_activate_persist_thread, fttl_enable_periodic, fttl_disable_periodic, fttl_create_template, fttl_activate_template, fttl_add_to_template, fttl_remove_from_template, fttl_clear_template. fttl_get_template_length.