Lines Matching refs:service

29  * given service.  This supports the transition from the legacy service channel
55 * The mechanism to relate a service to a device path is different for
57 * Sample service: sunvts
69 * Extract from dev_path the "service name" portion.
70 * For vldc, the service corresponds to the minor name of the device path
71 * (e.g. virtual-channel@3:sunvts for sunvts). If service is non-NULL, it must
72 * match the extracted service name for the function to succeed.
73 * The service name is returned in match (if non-NULL), and the function
77 get_vldc_svc_name(char *dev_path, char *service, char **match)
96 * If in addition, a service string is specified to
99 if (service != NULL) {
100 if (strcmp(s, service) == 0) {
123 * Extract from dev_path the "service name" portion.
124 * For glvc, the service corresponds to the node name of the device path
125 * (e.g. sunvts@a:glvc for sunvts). If service is non-NULL, it must
126 * match the extracted service name for the function to succeed.
127 * The service name is returned in match (if non-NULL), and the function
131 get_glvc_svc_name(char *dev_path, char *service, char **match)
157 * If a service string is specified, check if there
160 if ((service != NULL) && (strncmp(devname, service, len) != 0))
175 * This routine accepts either a prefixed service name or a legacy full
177 * returns a canonical service name. If the parameter is neither a service
188 * First check whether a service name
196 * Not a service name, check if it's a valid pathname
204 * requiring all vldc access to be only via service names. But
218 * Walk all "service" device nodes to find the one with the
222 svc_name_to_glvc_dev_path(char *service)
230 if (service == NULL)
242 /* Make sure node name matches service name */
243 if (strcmp(service, di_node_name(service_node)) == 0) {
279 svc_name_to_vldc_dev_path(char *service)
303 if (strcmp(minor_name, service) == 0) {
326 * Given a service name or a full legacy pathname, return
333 char *service;
335 if ((service = platsvc_extract_svc_name(svc_or_path)) == NULL)
341 pathn_p = svc_name_to_vldc_dev_path(service);
348 pathn_p = svc_name_to_glvc_dev_path(service);
354 free(service);