Searched refs:tmp_buffer (Results 1 – 1 of 1) sorted by relevance
/DragonOS-0.1.2/kernel/src/filesystem/fat32/ |
D | fat32.c | 607 void *tmp_buffer = kmalloc(fsbi->bytes_per_clus, 0); in fat32_read() local 613 memset(tmp_buffer, 0, fsbi->bytes_per_clus); in fat32_read() 618 (uint64_t)tmp_buffer); in fat32_read() 633 copy_to_user(buf, tmp_buffer + bytes_offset, step_trans_len); in fat32_read() 635 memcpy(buf, tmp_buffer + bytes_offset, step_trans_len); in fat32_read() 646 kfree(tmp_buffer); in fat32_read() 702 void *tmp_buffer = kmalloc(fsbi->bytes_per_clus, 0); in fat32_write() local 705 memset(tmp_buffer, 0, fsbi->bytes_per_clus); in fat32_write() 712 (uint64_t)tmp_buffer); in fat32_write() 729 copy_from_user(tmp_buffer + bytes_offset, buf, step_trans_len); in fat32_write() [all …]
|