Changeset 84afc7b in mainline for uspace/lib/libc/generic/ddi.c


Ignore:
Timestamp:
2009-03-18T10:53:12Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e749794
Parents:
8015eeec
Message:

as kernel little brother drivers are not needed anymore, the device numbers do not have to be correlated between kernel and uspace in any way
introduce new syscall sys_device_assign_devno() for generating system-wide unique device numbers for uspace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/ddi.c

    r8015eeec r84afc7b  
    4141#include <libarch/config.h>
    4242#include <kernel/ddi/ddi_arg.h>
     43
     44/** Return unique device number.
     45 *
     46 * @return New unique device number.
     47 *
     48 */
     49int device_assign_devno(void)
     50{
     51        return __SYSCALL0(SYS_DEVICE_ASSIGN_DEVNO);
     52}
    4353
    4454/** Map piece of physical memory to task.
Note: See TracChangeset for help on using the changeset viewer.