OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [common/] [v2_0/] [tests/] [mbuf_test.c] - Blame information for rev 593

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
//==========================================================================
2
//
3
//      tests/mbuf_test.c
4
//
5
//      Initial test for network mbufs
6
//
7
//==========================================================================
8
//####BSDCOPYRIGHTBEGIN####
9
//
10
// -------------------------------------------
11
//
12
// Portions of this software may have been derived from OpenBSD or other sources,
13
// and are covered by the appropriate copyright disclaimers included herein.
14
//
15
// -------------------------------------------
16
//
17
//####BSDCOPYRIGHTEND####
18
//==========================================================================
19
//#####DESCRIPTIONBEGIN####
20
//
21
// Author(s):    gthomas
22
// Contributors: gthomas
23
// Date:         2000-01-10
24
// Purpose:      
25
// Description:  
26
//              
27
//
28
//####DESCRIPTIONEND####
29
//
30
//==========================================================================
31
 
32
// mbuf test code
33
 
34
#include <sys/param.h>
35
#include <sys/mbuf.h>
36
 
37
#include <cyg/infra/diag.h>
38
#include <cyg/infra/testcase.h>
39
 
40
void
41
cyg_start(void)
42
{
43
    int i;
44
    struct mbuf *m[32];
45
    diag_printf("Start mbuf test\n");
46
 
47
    for (i = 0;  i < 32;  i++) {
48
        m[i] = m_get(M_DONTWAIT, MT_DATA);
49
        diag_printf("allocate mbuf = %x\n", m[i]);
50
    }
51
 
52
    cyg_test_exit();
53
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.