summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* ARM: PR2042: Provide stub for ARMv6-MSebastian Huber2012-03-272-8/+9
|
* ARM: New define ARMV7M_EXCEPTION_PRIORITY_LOWESTSebastian Huber2012-03-241-0/+2
|
* PR2041: sparc64: vector number not included in CPU_Interrupt_frameGedare Bloom2012-03-141-1/+2
| | | | | Add the trap vector to the interrupt frame. Also rename the assembly macro that accesses the field to be consistent with similar macros.
* PR2040: libblock: Flash disk starvations statisticSebastian Huber2012-03-141-2/+10
|
* PR2040: libblock: Flash disk documentationSebastian Huber2012-03-142-106/+122
|
* PR2040: libblock: Fix return statusSebastian Huber2012-03-141-3/+3
|
* PR2040: libblock: Avoid erased blocks starvationSebastian Huber2012-03-141-115/+185
| | | | | | | | | | | | The compaction process needs erased blocks. It is only possible to erase an entire segment. Thus in order to make a progress we always need enough erased blocks to empty a used or available segment which can be erased in turn. A (possibly the worst case) lower bound of erased blocks is the block count of the largest segment. The number of unavailable blocks specified by the configuration will be used to determine the erase blocks starvation situation. The number of unavailable blocks must be greater than or equal to the number of blocks in the largest segment.
* PR2040: libblock: Track number of erased blocksSebastian Huber2012-03-141-1/+8
|
* PR2040: libblock: Use segment control as parameterSebastian Huber2012-03-141-100/+91
|
* PR2039: Fix NULL pointer accessSebastian Huber2012-03-141-2/+2
| | | | | | | In case rtems_bdbuf_read() returns an error status, the block device buffer pointer will be set to NULL. In RFS the chain node of the block device buffer will be used for RFS purposes. We must not do this after an erroneous read.
* libblock: Use new API for disk mediaSebastian Huber2012-03-131-57/+14
|
* libblock: Add generic IMFS block device nodesSebastian Huber2012-03-133-0/+431
| | | | | | | | New functions o rtems_blkdev_create(), and o rtems_blkdev_create_partition(). New test libtests/block11.
* libblock: Split file and simplifySebastian Huber2012-03-133-77/+83
|
* libblock: New support functionsSebastian Huber2012-03-131-0/+21
| | | | | | | Add o rtems_disk_get_block_size(), o rtems_disk_get_block_begin(), and o rtems_disk_get_block_count().
* libblock: Change bdbuf APISebastian Huber2012-03-1317-312/+275
| | | | | | | | | | | | | | | | | | | | The functions o rtems_bdbuf_get(), o rtems_bdbuf_read(), o rtems_bdbuf_syncdev(), and o rtems_bdbuf_purge_dev(), use now the disk device instead of the device identifier. This makes bdbuf independent of rtems_disk_obtain() and rtems_disk_release(). It is the responsiblity of the file system to obtain the disk device. This also reduces the overhead to get a buffer. The key for the AVL tree uses now the disk device instead of the device identifier. The pointer is interpreted as an unsigned integer. This reduces the memory overhead and makes the comparison operation a bit faster. Removed function rtems_bdbuf_purge_major(). This function was too destructive and could have unpredictable side effects.
* libblock: DocumentationSebastian Huber2012-03-131-25/+41
|
* libblock: Remove superfluous volatile qualifierSebastian Huber2012-03-132-9/+9
| | | | All these variables are protected by the bdbuf cache mutex.
* libblock: Discard extended partitionsSebastian Huber2012-03-131-0/+2
| | | | | Discard the extended partitions after evaluation. This prevents logical disks that contain other logical disks.
* libblock: rtems_ide_part_table_initialize() APISebastian Huber2012-03-132-2/+2
|
* libblock: New block IO control support functionsSebastian Huber2012-03-132-1/+40
|
* libblock: New IO control RTEMS_BLKIO_GETDISKDEVSebastian Huber2012-03-132-0/+6
|
* libblock: Avoid bdbuf APISebastian Huber2012-03-131-22/+35
|
* libblock: Split fileSebastian Huber2012-03-133-61/+89
|
* libblock: Add optional free at delete requestSebastian Huber2012-03-132-1/+18
|
* IMFS: Node specific stat handlersSebastian Huber2012-03-135-58/+81
|
* IMFS: Generic device identifierSebastian Huber2012-03-131-0/+12
|
* IMFS: Add make generic node supportSebastian Huber2012-03-133-0/+155
| | | | | | | | | | | | | | | | | | | | | | Generic nodes are an alternative to standard drivers in RTEMS. The handlers of a generic node are called with less overhead compared to the standard driver operations. The usage of file system node handlers enable more features like support for fsync() and fdatasync(). The generic nodes use the reference counting of the IMFS. This provides automatic node destruction when the last reference vanishes. Extend type IMFS_types_union by new type IMFS_generic_t. Extend enum IMFS_jnode_types_t by IMFS_GENERIC. Add functions o IMFS_make_generic_node(), o IMFS_is_imfs_instance(), o IMFS_generic_get_context_by_node(), o IMFS_generic_get_context_by_location(), and o IMFS_generic_get_context_by_iop(). New test fstests/fsimfsgeneric01.
* IMFS: Add and use node controlSebastian Huber2012-03-1314-315/+419
| | | | | | Add and use structure IMFS_node_control with support functions. This helps to make high level functions independent of the node type and reduces the number of branches in the code.
* IMFS: New support functionsSebastian Huber2012-03-139-31/+43
| | | | Add and use IMFS_type() and IMFS_is_directory().
* IMFS: Removed superfluous imfs_dir_open()Sebastian Huber2012-03-133-35/+1
|
* IMFS: Reference counting for nodesSebastian Huber2012-03-1316-126/+84
| | | | | The introduction of reference counting of nodes avoids the removal of open nodes and potential usage of freed memory.
* IMFS: Use unprotected chain operationsSebastian Huber2012-03-134-17/+28
| | | | | Directory entry add or removal operations are protected by the file system instance lock. There is no need for protected chain operations.
* IMFS: Lock the file system during directory readsSebastian Huber2012-03-131-21/+15
| | | | | Other threads may add or remove directory entries during a read of the directory. Use the file system instance lock for protection.
* IMFS: Do not check for unsupported typesSebastian Huber2012-03-131-10/+0
| | | | | Allow creation of nodes with an unsupported type. Later the usage of such nodes will return an error status.
* Filesystem: Rename definesSebastian Huber2012-03-1331-95/+136
| | | | | | | | | | | | | | | o Removed RTEMS_LIBIO_PERMS_SEARCH. o Renamed RTEMS_LIBIO_PERMS_READ in RTEMS_FS_PERMS_READ. o Renamed RTEMS_LIBIO_PERMS_WRITE in RTEMS_FS_PERMS_WRITE. o Renamed RTEMS_LIBIO_PERMS_EXEC in RTEMS_FS_PERMS_EXEC. o Renamed RTEMS_LIBIO_FOLLOW_HARD_LINK in RTEMS_FS_FOLLOW_HARD_LINK. o Renamed RTEMS_LIBIO_FOLLOW_SYM_LINK in RTEMS_FS_FOLLOW_SYM_LINK. o Renamed RTEMS_LIBIO_MAKE in RTEMS_FS_MAKE. o Renamed RTEMS_LIBIO_EXCLUSIVE in RTEMS_FS_EXCLUSIVE. o Renamed RTEMS_LIBIO_ACCEPT_RESIDUAL_DELIMITERS in RTEMS_FS_ACCEPT_RESIDUAL_DELIMITERS. o Renamed RTEMS_LIBIO_REJECT_TERMINAL_DOT in RTEMS_FS_REJECT_TERMINAL_DOT.
* Filesystem: New defaults fsync_h and fdatasync_hSebastian Huber2012-03-1322-104/+82
| | | | | | | New defaults rtems_filesystem_default_fsync_or_fdatasync() and rtems_filesystem_default_fsync_or_fdatasync_success() for fsync_h and fdatasync_h. The rtems_filesystem_default_fsync_or_fdatasync() sets now errno to EINVAL according to POSIX.
* Filesystem: Change node type enum valuesSebastian Huber2012-03-131-2/+2
| | | | | | | Move the RTEMS_FILESYSTEM_INVALID_NODE_TYPE to the end. This makes it possible to use this enum easily as an array index. Most comparisons are made against RTEMS_FILESYSTEM_DIRECTORY. A value of zero allows on some architectures simpler branch operations.
* Filesystem: Change error indicationSebastian Huber2012-03-132-5/+7
| | | | Change error indication to ESPIPE in rtems_filesystem_default_lseek().
* Filesystem: New functionSebastian Huber2012-03-133-4/+46
| | | | New function rtems_filesystem_default_lseek_success().
* Filesystem: Read-only file system checksSebastian Huber2012-03-133-26/+40
| | | | | | | o Make sure EROFS is indicated for write operations on a read-only file system. o Add error indication for read-only file systems in fchmod() and fchown() according to POSIX.
* Filesystem: Reference counting for locationsSebastian Huber2012-03-13166-7519/+6155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o A new data structure rtems_filesystem_global_location_t was introduced to be used for o the mount point location in the mount table entry, o the file system root location in the mount table entry, o the root directory location in the user environment, and o the current directory location in the user environment. During the path evaluation global start locations are obtained to ensure that the current file system instance will be not unmounted in the meantime. o The user environment uses now reference counting and is protected from concurrent access. o The path evaluation process was completely rewritten and simplified. The IMFS, RFS, NFS, and DOSFS use now a generic path evaluation method. Recursive calls in the path evaluation have been replaced with iteration to avoid stack overflows. Only the evaluation of symbolic links is recursive. No dynamic memory allocations and intermediate buffers are used in the high level path evaluation. No global locks are held during the file system instance specific path evaluation process. o Recursive symbolic link evaluation is now limited by RTEMS_FILESYSTEM_SYMLOOP_MAX. Applications can retrieve this value via sysconf(). o The device file system (devFS) uses now no global variables and allocation from the workspace. Node names are allocated from the heap. o The upper layer lseek() performs now some parameter checks. o The upper layer ftruncate() performs now some parameter checks. o unmask() is now restricted to the RWX flags and protected from concurrent access. o The fchmod_h and rmnod_h file system node handlers are now a file system operation. o The unlink_h operation has been removed. All nodes are now destroyed with the rmnod_h operation. o New lock_h, unlock_h, clonenod_h, and are_nodes_equal_h file system operations. o The path evaluation and file system operations are now protected by per file system instance lock and unlock operations. o Fix and test file descriptor duplicate in fcntl(). o New test fstests/fsnofs01.
* score: Add _RBTree_Opposite_direction.Gedare Bloom2012-03-042-8/+18
| | | | | Add a red-black tree helper method to ease obtaining the direction opposite to the current direction. Useful for manipulating and traversing an rbtree.
* 2012-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsépius2012-03-022-182/+193
| | | | | * libnetworking/resolv.h: Partial sync with FreeBSD. Add decls for res_send_setqhook, res_send_setrhook.
* 2012-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsépius2012-03-023-1/+11
| | | | | | * configure.ac: Check for rcmd in unistd.h. * libnetworking/libc/rcmd.c: Build iff rcmd is declared in unistd.h. Change rcmd's decl to match with Linux/FreeBSD's decl.
* PR 2026/filesystem - Fix semaphore attributesSebastian Huber2012-02-231-7/+2
| | | | | Semaphores of type RTEMS_SIMPLE_BINARY_SEMAPHORE are not suitable for a mutex. Use RTEMS_BINARY_SEMAPHORE with RTEMS_INHERIT_PRIORITY instead.
* 2012-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsépius2012-02-221-0/+2
| | | | | * libcsupport/src/assocnamebad.c: Add #define INSIDE_ASSOC.
* 2012-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsépius2012-02-221-0/+1
| | | | | * sapi/include/confdefs.h: Add decl of configuration_mount_table (Fix c++ mangling).
* Add functions for greedy workspace allocationSebastian Huber2012-02-173-0/+57
| | | | | | | Various tests must check program paths that result due to failed memory allocations from the workspace. To avoid tinkering with internal workspace structures throughout the test code these functions should be used.
* Fixed incorrect error pathSebastian Huber2012-02-151-2/+0
| | | | The inet_aton() function returns non-zero in case of success.
* Avoid buffer overflow and misaligned memory accessSebastian Huber2012-02-141-14/+24
|