mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 08:23:34 +08:00
drivers/, drivers/pipes, and drivers/serial file clean-up
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4944 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* drivers/rwbuffer.c
|
||||
*
|
||||
* Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -359,6 +359,7 @@ static int rwb_rhreload(struct rwbuffer_s *rwb, off_t startblock)
|
||||
{
|
||||
endblock = rwb->nblocks;
|
||||
}
|
||||
|
||||
nblocks = endblock - startblock;
|
||||
|
||||
/* Now perform the read */
|
||||
@@ -655,10 +656,12 @@ int rwb_write(FAR struct rwbuffer_s *rwb, off_t startblock,
|
||||
|
||||
/****************************************************************************
|
||||
* Name: rwb_mediaremoved
|
||||
*
|
||||
* Description:
|
||||
* The following function is called when media is removed
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/* The following function is called when media is removed */
|
||||
|
||||
int rwb_mediaremoved(FAR struct rwbuffer_s *rwb)
|
||||
{
|
||||
#ifdef CONFIG_FS_WRITEBUFFER
|
||||
|
||||
Reference in New Issue
Block a user