Changeset 30c3898 in rtems
- Timestamp:
- 03/03/18 12:24:42 (5 years ago)
- Branches:
- 5, master
- Children:
- c4d35fb
- Parents:
- 9d62874
- git-author:
- Sebastian Huber <sebastian.huber@…> (03/03/18 12:24:42)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (05/18/18 08:44:18)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/include/rtems/blkdev.h
r9d62874 r30c3898 297 297 * @retval RTEMS_NO_MEMORY Not enough memory. 298 298 * @retval RTEMS_UNSATISFIED Cannot create generic device node. 299 * @retval RTEMS_INCORRECT_STATE Cannot initialize bdbuf. 299 300 * 300 301 * @see rtems_blkdev_create_partition(), rtems_bdbuf_set_block_size(), and -
cpukit/libblock/src/blkdev-imfs.c
r9d62874 r30c3898 7 7 8 8 /* 9 * Copyright (c) 2012 embedded brains GmbH. All rights reserved.9 * Copyright (c) 2012, 2018 embedded brains GmbH. All rights reserved. 10 10 * 11 11 * embedded brains GmbH 12 * Obere Lagerstr. 3012 * Dornierstr. 4 13 13 * 82178 Puchheim 14 14 * Germany … … 280 280 ) 281 281 { 282 rtems_status_code sc = RTEMS_SUCCESSFUL; 283 rtems_blkdev_imfs_context *ctx = malloc(sizeof(*ctx)); 284 282 rtems_status_code sc; 283 rtems_blkdev_imfs_context *ctx; 284 285 sc = rtems_bdbuf_init(); 286 if (sc != RTEMS_SUCCESSFUL) { 287 return RTEMS_INCORRECT_STATE; 288 } 289 290 ctx = malloc(sizeof(*ctx)); 285 291 if (ctx != NULL) { 286 292 sc = rtems_disk_init_phys( -
testsuites/libtests/block17/init.c
r9d62874 r30c3898 1 1 /* 2 * Copyright (c) 2013 embedded brains GmbH. All rights reserved.2 * Copyright (c) 2013, 2018 embedded brains GmbH. All rights reserved. 3 3 * 4 4 * embedded brains GmbH … … 18 18 19 19 #include <rtems/bdbuf.h> 20 #include <rtems/blkdev.h> 20 21 21 22 #include "tmacros.h" … … 25 26 static void test(void) 26 27 { 27 rtems_status_code sc = rtems_bdbuf_init(); 28 rtems_status_code sc; 29 30 sc = rtems_bdbuf_init(); 28 31 rtems_test_assert(sc == RTEMS_INVALID_NUMBER); 32 33 sc = rtems_blkdev_create(NULL, 0, 0, NULL, NULL); 34 rtems_test_assert(sc == RTEMS_INCORRECT_STATE); 29 35 } 30 36
Note: See TracChangeset
for help on using the changeset viewer.