open & write in kernel mode

From: Benhanokh Gabriel (gabriel@SANgate.com)
Date: Mon May 15 2000 - 15:56:30 EST


hi

what are the equivalent function to the user space system calls open &
write ?

for open:
should i use filp_open or open_dentry ?
do i need to satisfy some pre request to call them ( i.e. do i need to
get any lock first ? ) or are they self-sufficient ?

for write:
sys_write looks ok, but it is not exported.
should i cat & paste its code or that i need to call another function?
and if so should it be generic_file_write or block_write?
and again, do i need to satisfy any pre-conditions ?

please CC me for any answer
THX
/gaby

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:26 EST