Lines Matching defs:template

106  * template and adds terms to that template. These include the
123 * if the contract is being created at open time via an activated template.
198 * the device contracts private part of the contract template structure. It
199 * encapsulates the generic template structure "ct_template_t" and includes
213 * These routines provide support for template related operations initated
214 * via the generic template operations. These include routines that dup
215 * a template, free it, and set various terms in the template
218 * device specific portion of the template for the abovementioned terms.
220 * create a contract from a template. This routine calls (after initial
229 * to create a contract from a template (either via an explicit create
230 * operation on a template or implicitly via an open with an
231 * activated template.). The contract_device_free() routine assists
263 * A contract starts its life as a template. A process allocates a device
264 * contract template and sets various terms:
269 * Setting of these terms in the template is done via the
271 * template to determine the terms already set in the template - this is
339 * i) device contract specific portion of the contract template - This data
340 * is protected by the template lock ctmpl_lock.
351 * The template lock is independent in that none of the other locks in this
352 * file may be taken while holding the template lock (and vice versa).
401 * Device contract template implementation
407 * The device contract template dup entry point.
412 ctmpl_device_dup(struct ct_template *template)
415 ctmpl_device_t *old = template->ctmpl_data;
424 * ctmpl_copy returns with old template lock held
426 ctmpl_copy(&new->ctd_ctmpl, template);
441 mutex_exit(&template->ctmpl_lock);
449 mutex_enter(&template->ctmpl_lock);
462 * The device contract template free entry point. Just
463 * frees the template.
466 ctmpl_device_free(struct ct_template *template)
468 ctmpl_device_t *dtmpl = template->ctmpl_data;
493 * The device contract template set entry point. Sets various terms in the
494 * template. The non-negotiable term can only be set if the process has
595 * The device contract template get entry point. Simply fetches and
599 ctmpl_device_get(struct ct_template *template, ct_kparam_t *kparam)
601 ctmpl_device_t *dtmpl = template->ctmpl_data;
605 ASSERT(MUTEX_HELD(&template->ctmpl_lock));
639 * a specified template
643 ctmpl_device_create(ct_template_t *template, ctid_t *ctidp)
657 dtmpl = template->ctmpl_data;
659 mutex_enter(&template->ctmpl_lock);
661 /* incomplete template */
662 mutex_exit(&template->ctmpl_lock);
669 mutex_exit(&template->ctmpl_lock);
683 ctd = contract_device_create(template->ctmpl_data,
702 * Device contract specific template entry points
721 * The device contract default template entry point. Creates a
722 * device contract template with a default A-set and no "noneg" ,
1191 * create a device contract given template "tmpl" and the "owner" process.
1352 * If the user set a minor path in the template before an open,
1358 "ignoring device minor path in active template: %s",
1361 * This is a copy of the actual activated template.
1363 * path in the template.