Ignore:
Timestamp:
2024-12-13T08:44:05Z (15 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
420b13d
Parents:
fb31682
git-author:
Nataliia Korop <n.corop08@…> (2024-11-30 19:08:32)
git-committer:
Nataliia Korop <n.corop08@…> (2024-12-13 08:44:05)
Message:

docs comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcap/src/pcapdump_client.c

    rfb31682 r87b490e3  
    3030 * @{
    3131 */
    32 /** @file
    33  * @brief Client side of the pcapctl. Functions are called from the app pcapctl
     32/** @file Client side of the pcapctl. Functions are called from the app pcapctl.
    3433 */
    3534
     
    5251}
    5352
     53/** Get service based on the index of the device.
     54 *  @param index of the device.
     55 *  @param svc placeholder for service ide.
     56 *  @return EOK if successful, error code otherwise.
     57 */
    5458static errno_t pcapctl_cat_get_svc(int *index, service_id_t *svc)
    5559{
     
    8084}
    8185
     86/** Check if the index is an index of valid device.
     87 *  @param index to check.
     88 *  @return EOK if device is valid, error code otherwise.
     89 */
    8290errno_t pcapctl_is_valid_device(int *index)
    8391{
     
    105113}
    106114
     115/** Check if the index is an index of valid writer operations.
     116 * @param index to check.
     117 * @param sess  pcapctl session for IPC communictaion.
     118 */
    107119errno_t pcapctl_is_valid_ops_number(int *index, pcapctl_sess_t *sess)
    108120{
     
    127139}
    128140
    129 /**
    130  *
    131  */
     141/** Get all devices that can dump packets. */
    132142errno_t pcapctl_list(void)
    133143{
     
    160170}
    161171
    162 /**
    163  *
     172/** Start pcapctl IPC session.
     173 *  @param index        index of the device which can dump packets.
     174 *  @param rsess        placeholder for the session.
     175 *  @return                     EOK if successful, error code otherwise.
    164176 */
    165177errno_t pcapctl_dump_open(int *index, pcapctl_sess_t **rsess)
     
    196208}
    197209
    198 /**
    199  *
     210/** Close pcapctl IPC session.
     211 *  @param sess Session to close.
     212 *  @return EOK if successful, error code otherwise.
    200213 */
    201214errno_t pcapctl_dump_close(pcapctl_sess_t *sess)
     
    205218}
    206219
    207 /** Starting a new session for pcapctl
    208  *
    209  * @param name Name of the file to dump packets to
    210  * @param sess session to start
    211  * @return EOK on success or an error code
     220/** Send start request via IPC to start dumping.
     221 *
     222 * @param name  Name of the destination buffer to dump packets to.
     223 * @param sess  Session that is used for communication.
     224 * @return              EOK on success or an error code.
    212225 */
    213226errno_t pcapctl_dump_start(const char *name, int *ops_index, pcapctl_sess_t *sess)
     
    233246}
    234247
    235 /** Finish current session for pcapctl
    236  *
    237  * @param sess Session to finish
    238  * @return EOK on success or an error code
     248/** Send stop request via IPC to start dumping.
     249 *
     250 * @param sess  Session that is used for communication.
     251 * @return              EOK on success or an error code.
    239252 */
    240253errno_t pcapctl_dump_stop(pcapctl_sess_t *sess)
Note: See TracChangeset for help on using the changeset viewer.