udev_device.c revision 44aff4cd6d74d230e4a97f8d59f780472b7cad6e
/*
* Copyright (C) 2004-2006 Kay Sievers <kay.sievers@vrfy.org>
*
* under the terms of the GNU General Public License as published by the
* Free Software Foundation version 2 of the License.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
#include "udev.h"
#include "udev_rules.h"
struct udevice *udev_device_init(void)
{
return NULL;
/* set sysfs device to local storage, can be overridden if needed */
/* default node permissions */
return udev;
}
{
return;
}
{
const char *attr;
/* read it from sysfs */
}
return makedev(0, 0);
}