Ignore:
Timestamp:
Nov 20, 2020, 12:04:01 AM (4 years ago)
Author:
alain
Message:

1) Introduce up to 4 command lines arguments in the KSH "load" command.
These arguments are transfered to the user process through the
argc/argv mechanism, using the user space "args" vseg.

2) Introduce the named and anonymous "pipes", for inter-process communication
through the pipe() and mkfifo() syscalls.

3) Introduce the "chat" application to validate the two above mechanisms.

4) Improve printk() and assert() fonctions in printk.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_ioc.c

    r663 r674  
    5454
    5555    // set chdev name
    56     snprintf( ioc->name , 16 , "ioc%d" , channel );
     56    snprintk( ioc->name , 16 , "ioc%d" , channel );
    5757
    5858    // call driver init function
     
    7878                                  lid );
    7979
    80 assert( (error == 0) , "cannot create server thread" );
     80assert( __FUNCTION__, (error == 0) , "cannot create server thread" );
    8181
    8282    // set "server" field in chdev descriptor
     
    108108
    109109// check dev_xp
    110 assert( (ioc_xp != XPTR_NULL) , "undefined IOC chdev descriptor" );
     110assert( __FUNCTION__, (ioc_xp != XPTR_NULL) , "undefined IOC chdev descriptor" );
    111111
    112112    // register command in client thread 
     
    141141
    142142// check dev_xp
    143 assert( (ioc_xp != XPTR_NULL) , "undefined IOC chdev descriptor" );
     143assert( __FUNCTION__, (ioc_xp != XPTR_NULL) , "undefined IOC chdev descriptor" );
    144144
    145145    // register command in calling thread descriptor
Note: See TracChangeset for help on using the changeset viewer.