summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/include/rtems/libio_.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-06 07:31:48 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-14 07:02:28 +0200
commit694e946dbd64c94343aeb289edd80a60759f7b26 (patch)
treedadfd23f4d37c623b10dca5aff23b0c84f694de7 /cpukit/libcsupport/include/rtems/libio_.h
parentposix: Ignore pshared for semaphores (diff)
downloadrtems-694e946dbd64c94343aeb289edd80a60759f7b26.tar.bz2
libio: Remove special-case reference count
The top-level IO library structures should contain no special-case data. Update #2859.
Diffstat (limited to 'cpukit/libcsupport/include/rtems/libio_.h')
-rw-r--r--cpukit/libcsupport/include/rtems/libio_.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h
index 695a4c45a5..c2fb975bf7 100644
--- a/cpukit/libcsupport/include/rtems/libio_.h
+++ b/cpukit/libcsupport/include/rtems/libio_.h
@@ -304,47 +304,6 @@ void rtems_libio_free(
rtems_libio_t *iop
);
-/**
- * Garbage collects the free libio in case it was previously freed but there
- * were still references to it.
- */
-void rtems_libio_check_deferred_free( rtems_libio_t *iop );
-
-/**
- * Increment the reference count tracking number of mmap mappings of a file.
- * Returns the updated reference count value.
- */
-static inline uint32_t rtems_libio_increment_mapping_refcnt(rtems_libio_t *iop)
-{
- uint32_t refcnt;
- rtems_libio_lock();
- refcnt = ++iop->mapping_refcnt;
- rtems_libio_unlock();
- return refcnt;
-}
-
-/**
- * Decrement the reference count tracking number of mmap mappings of a file.
- * Returns the updated reference count value.
- */
-static inline uint32_t rtems_libio_decrement_mapping_refcnt(rtems_libio_t *iop)
-{
- uint32_t refcnt;
- rtems_libio_lock();
- refcnt = --iop->mapping_refcnt;
- rtems_libio_unlock();
- return refcnt;
-}
-
-static inline bool rtems_libio_is_mapped(rtems_libio_t *iop)
-{
- bool is_mapped;
- rtems_libio_lock();
- is_mapped = iop->mapping_refcnt != 0;
- rtems_libio_unlock();
- return is_mapped;
-}
-
/*
* File System Routine Prototypes
*/