Changeset 2ebbe9b in mainline for uspace/lib/nic/src/nic_impl.c


Ignore:
Timestamp:
2024-12-13T08:32:55Z (14 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
9e26790
Parents:
7924f82
git-author:
Nataliia Korop <n.corop08@…> (2024-03-20 17:06:29)
git-committer:
Nataliia Korop <n.corop08@…> (2024-12-13 08:32:55)
Message:

nic, drvs, pcapctl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nic/src/nic_impl.c

    r7924f82 r2ebbe9b  
    844844}
    845845
     846errno_t nic_fun_add_to_cats(ddf_fun_t *fun)
     847{
     848        errno_t rc;
     849        rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
     850        if (rc != EOK)
     851                goto err_add_to_cat;
     852
     853        rc = ddf_fun_add_to_category(fun, "pcap");
     854        if (rc != EOK) {
     855                //ddf_msg(LVL_ERROR, "Failed adding function to category pcap");
     856                goto err_add_to_cat;
     857        }
     858        return EOK;
     859
     860err_add_to_cat:
     861        ddf_fun_unbind(fun);
     862        return rc;
     863}
     864
    846865/** @}
    847866 */
Note: See TracChangeset for help on using the changeset viewer.