Changeset d34657e in mainline


Ignore:
Timestamp:
2005-05-11T17:00:13Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
27dc170
Parents:
724b58a
Message:

doxygen-style comments

Location:
src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/lib/func.c

    r724b58a rd34657e  
    3333#include <arch.h>
    3434
    35 __u32   haltstate = 0;
     35__u32   haltstate = 0; /**< Halt flag */
    3636
     37
     38/** Halt wrapper
     39 *
     40 * Set halt flag and halt the cpu.
     41 *
     42 */
    3743void halt(void)
    3844{
     
    4450
    4551
    46 /*
    47  * returns 0 if src == dst
    48  * otherwise returns 1
     52/** Compare two NULL terminated strings
     53 *
     54 * Do a char-by-char comparment of two NULL terminated strings.
     55 * The strings are considered equal iff they have the same
     56 * length and consist of the same characters.
     57 *
     58 * @param src First string to compare.
     59 * @param dst Second string to compare.
     60 *
     61 * @return 0 if the strings are equal, 1 otherwise.
     62 *
    4963 */
    5064int strcmp(char *src, char *dst)
  • src/lib/list.c

    r724b58a rd34657e  
    2929#include <list.h>
    3030
     31
     32/** Check for membership
     33 *
     34 * Check whether link is contained in the list head.
     35 * The membership is defined as pointer equivalence.
     36 *
     37 * @param link Item to look for.
     38 * @param head List to look in.
     39 *
     40 * @return 1 if link is contained in head, 0 otherwise.
     41 *
     42 */
    3143int list_member(link_t *link, link_t *head)
    3244{
     
    4557}
    4658
     59
     60/** Concatenate two lists
     61 *
     62 * Concatenate lists head1 and head2, producing a single
     63 * list head1 containing items from both (in head1, head2
     64 * order) and empty list head2.
     65 *
     66 * @param head1 First list and concatenated output
     67 * @param head2 Second list and empty output.
     68 *
     69 */
    4770void list_concat(link_t *head1, link_t *head2)
    4871{
  • src/lib/memstr.c

    r724b58a rd34657e  
    3030#include <arch/types.h>
    3131
     32
     33/** Copy block of memory
     34 *
     35 * Copy cnt bytes from src address to dst address.
     36 * The copying is done byte-by-byte. The source
     37 * and destination memory areas cannot overlap.
     38 *
     39 * @param src Origin address to copy from.
     40 * @param dst Origin address to copy to.
     41 * @param cnt Number of bytes to copy.
     42 *
     43 */
    3244void _memcopy(__address src, __address dst, int cnt)
    3345{
     
    3850}
    3951
     52
     53/** Fill block of memory
     54 *
     55 * Fill cnt bytes at dst address with the value x.
     56 * The filling is done byte-by-byte.
     57 *
     58 * @param dst Origin address to fill.
     59 * @param cnt Number of bytes to fill.
     60 * @param x   Value to fill.
     61 *
     62 */
    4063void _memsetb(__address dst, int cnt, __u8 x)
    4164{
Note: See TracChangeset for help on using the changeset viewer.