Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/generic/packet_remote.c

    rb69ceea r514ee46  
    2727 */
    2828
    29 /** @addtogroup libnet
    30  * @{
     29/** @addtogroup packet
     30 *  @{
    3131 */
    3232
    3333/** @file
    34  * Packet client interface implementation for remote modules.
    35  * @see packet_client.h
     34 *  Packet client interface implementation for remote modules.
     35 *  @see packet_client.h
    3636 */
    3737
     
    8686}
    8787
    88 /** Translates the packet identifier to the packet reference.
    89  *
    90  * Tries to find mapping first.
    91  * Contacts the packet server to share the packet if the mapping is not present.
    92  *
    93  * @param[in] phone     The packet server module phone.
    94  * @param[out] packet   The packet reference.
    95  * @param[in] packet_id The packet identifier.
    96  * @returns             EOK on success.
    97  * @returns             EINVAL if the packet parameter is NULL.
    98  * @returns             Other error codes as defined for the NET_PACKET_GET_SIZE
    99  *                      message.
    100  * @returns             Other error codes as defined for the packet_return()
    101  *                      function.
    102  */
    10388int packet_translate_remote(int phone, packet_ref packet, packet_id_t packet_id)
    10489{
     
    125110}
    126111
    127 /** Obtains the packet of the given dimensions.
    128  *
    129  * Contacts the packet server to return the appropriate packet.
    130  *
    131  * @param[in] phone     The packet server module phone.
    132  * @param[in] addr_len  The source and destination addresses maximal length in
    133  *                      bytes.
    134  * @param[in] max_prefix The maximal prefix length in bytes.
    135  * @param[in] max_content The maximal content length in bytes.
    136  * @param[in] max_suffix The maximal suffix length in bytes.
    137  * @returns             The packet reference.
    138  * @returns             NULL on error.
    139  */
    140112packet_t packet_get_4_remote(int phone, size_t max_content, size_t addr_len,
    141113    size_t max_prefix, size_t max_suffix)
     
    161133}
    162134
    163 /** Obtains the packet of the given content size.
    164  *
    165  * Contacts the packet server to return the appropriate packet.
    166  *
    167  * @param[in] phone     The packet server module phone.
    168  * @param[in] content   The maximal content length in bytes.
    169  * @returns             The packet reference.
    170  * @returns             NULL on error.
    171  */
    172135packet_t packet_get_1_remote(int phone, size_t content)
    173136{
     
    191154}
    192155
    193 /** Releases the packet queue.
    194  *
    195  * All packets in the queue are marked as free for use.
    196  * The packet queue may be one packet only.
    197  * The module should not use the packets after this point until they are
    198  * received or obtained again.
    199  *
    200  * @param[in] phone     The packet server module phone.
    201  * @param[in] packet_id The packet identifier.
    202  */
    203156void pq_release_remote(int phone, packet_id_t packet_id)
    204157{
Note: See TracChangeset for help on using the changeset viewer.