Add capability to traverse inodes in the NuttX psuedo-filesystem

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5004 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-08-03 19:11:11 +00:00
parent 446e9ba0d1
commit d4c88180c3
23 changed files with 463 additions and 100 deletions
+9 -1
View File
@@ -1,7 +1,7 @@
/****************************************************************************
* drivers/dev_null.c
*
* Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
* Copyright (C) 2008-2009, 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -121,6 +121,14 @@ static int devzero_poll(FAR struct file *filp, FAR struct pollfd *fds,
* Public Functions
****************************************************************************/
/****************************************************************************
* Name: devzero_register
*
* Description:
* Register /dev/zero
*
****************************************************************************/
void devzero_register(void)
{
(void)register_driver("/dev/zero", &devzero_fops, 0666, NULL);