Changeset 7551706b in mainline for uspace/drv/test1/test1.c


Ignore:
Timestamp:
2010-12-17T23:26:53Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3ca3430
Parents:
47a7174f
Message:

Extended virtchar1 test with device classes

The test also tries to connect to the (same) device using its class
interface path (under /dev/class).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/test1/test1.c

    r47a7174f r7551706b  
    9898        if (str_cmp(dev->name, "null") == 0) {
    9999                dev->ops = &char_device_ops;
     100                add_device_to_class(dev, "virt-null");
    100101        } else if (dev->parent == NULL) {
    101102                register_child_verbose(dev, "cloning myself ;-)", "clone",
Note: See TracChangeset for help on using the changeset viewer.