Changeset cf28ffd3 in mainline for uspace/lib


Ignore:
Timestamp:
2024-10-28T22:19:45Z (12 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
1cfa162
Parents:
d84773a
Message:

hr: add option to silently fail an extent

Location:
uspace/lib/device
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/device/include/hr.h

    rd84773a rcf28ffd3  
    9797
    9898extern errno_t hr_create(hr_t *, hr_config_t *, bool);
    99 extern errno_t hr_stop(const char *);
     99extern errno_t hr_stop(const char *, long);
    100100extern errno_t hr_print_status(void);
    101101
  • uspace/lib/device/src/hr.c

    rd84773a rcf28ffd3  
    169169}
    170170
    171 errno_t hr_stop(const char *devname)
     171errno_t hr_stop(const char *devname, long extent)
    172172{
    173173        hr_t *hr;
     
    189189                goto error;
    190190        }
    191         rc = async_req_1_0(exch, HR_STOP, svc_id);
     191        rc = async_req_2_0(exch, HR_STOP, svc_id, extent);
    192192        async_exchange_end(exch);
    193193
Note: See TracChangeset for help on using the changeset viewer.