8eea8e29cc4374d1ee24c25a07f45af132db3499ap * CDDL HEADER START
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * The contents of this file are subject to the terms of the
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * Common Development and Distribution License, Version 1.0 only
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * (the "License"). You may not use this file except in compliance
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * with the License.
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * See the License for the specific language governing permissions
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * and limitations under the License.
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * When distributing Covered Code, include this CDDL HEADER in each
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * If applicable, add the following below this CDDL HEADER, with the
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * fields enclosed by brackets "[]" replaced with your own identifying
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * information: Portions Copyright [yyyy] [name of copyright owner]
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * CDDL HEADER END
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * Use is subject to license terms.
8eea8e29cc4374d1ee24c25a07f45af132db3499ap#pragma ident "%Z%%M% %I% %E% SMI"
8eea8e29cc4374d1ee24c25a07f45af132db3499apstatic int dcam1394_process(di_minor_t minor, di_node_t node);
8eea8e29cc4374d1ee24c25a07f45af132db3499ap "firewire",
8eea8e29cc4374d1ee24c25a07f45af132db3499ap "firewire",
8eea8e29cc4374d1ee24c25a07f45af132db3499ap "firewire",
8eea8e29cc4374d1ee24c25a07f45af132db3499ap devfsadm_print(debug_mid, "dcam1394_link: minor_init\n");
8eea8e29cc4374d1ee24c25a07f45af132db3499ap devfsadm_print(debug_mid, "dcam1394_link: minor_fini\n");
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * This function is called for every dcam1394 minor node.
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * Calls enumerate to assign a logical dcam1394 id, and then
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * devfsadm_mklink to make the link.
8eea8e29cc4374d1ee24c25a07f45af132db3499ap char l_path[PATH_MAX], p_path[PATH_MAX], *buf, *devfspath;
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * Build the physical path from the components, omitting
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * minor name field. Find the logical dcam1394 id, and
8eea8e29cc4374d1ee24c25a07f45af132db3499ap * stuff it in buf.
8eea8e29cc4374d1ee24c25a07f45af132db3499ap "dcam1394_process: exit/continue\n");
8eea8e29cc4374d1ee24c25a07f45af132db3499ap devfsadm_print(debug_mid, "dcam1394_process: p_path=%s buf=%s\n",