.TH "get_removable_partition" 9 "get_removable_partition" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME get_removable_partition \- Get removable media partition. .SH SYNOPSIS .B "int" get_removable_partition .BI "(struct devfs_entry *" dir "," .BI "const char *" name "," .BI "unsigned int " namelen ");" .SH ARGUMENTS .IP "dir" 12 The parent directory. .IP "name" 12 The name of the entry. .IP "namelen" 12 The number of characters in <<name>>. .SH "DESCRIPTION" Returns 1 if the media was changed, else 0. This function may block, and may indirectly cause the directory contents to be changed due to partition re-reading. The directory must be locked for reading upon entry, and will be unlocked upon exit.