Changeset 4c14ace6 in rtems


Ignore:
Timestamp:
Jan 31, 2015, 8:23:26 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
95308caf
Parents:
efd2965a
git-author:
Sebastian Huber <sebastian.huber@…> (01/31/15 20:23:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/04/15 18:31:52)
Message:

Add rtems_filesystem_make_dev_t_from_pointer()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/libio.h

    refd2965a r4c14ace6  
    14431443}
    14441444
     1445static inline dev_t rtems_filesystem_make_dev_t_from_pointer(
     1446  const void *pointer
     1447)
     1448{
     1449  uint64_t temp = (((uint64_t) 1) << 63) | (((uintptr_t) pointer) >> 1);
     1450
     1451  return rtems_filesystem_make_dev_t((uint32_t) (temp >> 32), (uint32_t) temp);
     1452}
     1453
    14451454static inline rtems_device_major_number rtems_filesystem_dev_major_t(
    14461455  dev_t device
Note: See TracChangeset for help on using the changeset viewer.