diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-03 19:11:11 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-03 19:11:11 +0000 |
commit | 4245767d673bcdf78d612c8d51aa9807fdbb724b (patch) | |
tree | da55e9fab23eebbf67c222daf2efe23f93daf1ec /nuttx/drivers/dev_zero.c | |
parent | 915abc09ad5aa6f4dabaae0876d3bead833edc3e (diff) | |
download | px4-nuttx-4245767d673bcdf78d612c8d51aa9807fdbb724b.tar.gz px4-nuttx-4245767d673bcdf78d612c8d51aa9807fdbb724b.tar.bz2 px4-nuttx-4245767d673bcdf78d612c8d51aa9807fdbb724b.zip |
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
Diffstat (limited to 'nuttx/drivers/dev_zero.c')
-rw-r--r-- | nuttx/drivers/dev_zero.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nuttx/drivers/dev_zero.c b/nuttx/drivers/dev_zero.c index 079126c06..5435f80ea 100644 --- a/nuttx/drivers/dev_zero.c +++ b/nuttx/drivers/dev_zero.c @@ -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); |