Changes between Version 21 and Version 22 of library_stdio
- Timestamp:
- Oct 28, 2014, 12:08:41 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_stdio
v21 v22 48 48 == __3) TTY related system calls__ == 49 49 50 === void '''giet_tty_open'''() === 51 This function allocates a private terminal to the calling task, and returns the terminal index. 52 Exit if no available terminal. 50 The GIET_VM allows an user task to use a private TTY terminal, or to display log message on a shared TTY terminal. 51 52 === unsigned int '''giet_tty_open'''() === 53 This function allocates a private terminal to the calling task, and returns the terminal index. This index is registered in the task context. Exit if no TTY terminal. 54 53 55 === void '''giet_tty_printf'''( char* format, ... ) === 54 56 This function print formated text on a private terminal that must have been allocated to the calling task in the mapping (''use_tty'' argument). Therefore, it does not take the TTY lock. … … 61 63 * %s : string 62 64 63 Exit in case of illegal format. 64 65 === void '''giet_shr_printf'''( char* format, ... ) === 66 This function print formated text on the shared terminal arbitrarily allocated by the kernel. It takes the TTY lock 67 for exclusive access. It supports the same formats as the giet_tty_printf() function. 68 69 Exit in case of illegal format. 65 Exit if private terminal index not defined, or in case of illegal format. 70 66 71 67 === void '''giet_tty_getc'''( char* byte ) === … … 87 83 88 84 Exit if private TTY index not defined. 85 86 === void '''giet_shr_printf'''( char* format, ... ) === 87 This function print formated text on the shared terminal arbitrarily allocated by the kernel. It takes the TTY lock 88 for exclusive access. It supports the same formats as the giet_tty_printf() function. 89 90 Exit in case of illegal format. 89 91 90 92 == __4) File system related system calls__ == … … 110 112 == __5) Network related system calls__ == 111 113 114 The GIET_VM allows a user task to directly access a private NIC channel. 115 116 === unsigned int '''giet_nic_open'''( ) === 117 This function allocates a private NIC channel to the calling task, and returns the channel index. 118 Exit if no available NIC channel. 119 112 120 === void '''giet_nic_sync_send'''( void* buffer ) === 113 121 This blocking function requires to transfer one container (4K bytes) from an user space buffer to the Ethernet Network Controller. … … 121 129 122 130 == __6) Frame Buffer related system calls__ == 131 132 An user task can access the frame buffer through a memcpy() or through the chained buffer DMA controller. 123 133 124 134 === void '''giet_fb_sync_read'''( unsigned int offset, void* buffer, unsigned int length ) ===