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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [net/] [common/] [current/] [tests/] [mbuf_test.c] - Blame information for rev 786

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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