Lines Matching refs:image
36 #include <ipxe/image.h>
51 * @v image Script
56 static int process_script ( struct image *image,
69 eol = memchr_user ( image->data, script_offset, '\n',
70 ( image->len - script_offset ) );
72 eol = image->len;
81 copy_from_user ( line, image->data, script_offset, len );
93 } while ( script_offset < image->len );
133 * @v image Script
136 static int script_exec ( struct image *image ) {
140 /* Temporarily de-register image, so that a "boot" command
143 unregister_image ( image );
149 rc = process_script ( image, script_exec_line,
155 /* Re-register image (unless we have been replaced) */
156 if ( ! image->replacement )
157 register_image ( image );
163 * Probe script image
165 * @v image Script
168 static int script_probe ( struct image *image ) {
177 if ( image->len < sizeof ( test ) ) {
183 copy_from_user ( test, image->data, 0, sizeof ( test ) );
194 /** Script image type */