Lines Matching refs:current_pcb
4 arch::asm::current::current_pcb,
184 let r = current_pcb().alloc_fd(file, None).map(|fd| fd as usize); in open()
196 return current_pcb().drop_fd(fd as i32).map(|_| 0); in close()
208 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in read()
226 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in write()
244 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in lseek()
317 let file: &mut File = match current_pcb().get_file_mut_by_fd(fd) { in getdents()
378 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in dup()
387 let res = current_pcb().alloc_fd(*file_cp, None).map(|x| x as usize); in dup()
413 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in dup2()
425 if let Err(_) = current_pcb().drop_fd(newfd) { in dup2()
437 let res = current_pcb() in dup2()
467 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
478 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
492 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
511 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
523 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
563 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in ftruncate()
575 let cur = current_pcb(); in do_fstat()