📄 lis_mount.9
字号:
'\" tr.\" -*- nroff -*-.\".\" @(#) lis_mount.9,v 1.1.4.1 2004/01/12 23:33:04 brian Exp.\".\" =========================================================================.\".\" Copyright (C) 2001-2004 OpenSS7 Corp. <www.openss7.com>.\".\" All Rights Reserved..\".\" Permission is granted to make and distribute verbatim copies of this.\" manual provided the copyright notice and this permission notice are.\" preserved on all copies..\".\" Permission is granted to copy and distribute modified versions of this.\" manual under the conditions for verbatim copying, provided that the.\" entire resulting derived work is distributed under the terms of a.\" permission notice identical to this one.\" .\" Since the Linux kernel and libraries are constantly changing, this.\" manual page may be incorrect or out-of-date. The author(s) assume no.\" responsibility for errors or omissions, or for damages resulting from.\" the use of the information contained herein. The author(s) may not.\" have taken the same level of care in the production of this manual,.\" which is licensed free of charge, as they might when working.\" professionally..\" .\" Formatted or processed versions of this manual, if unaccompanied by.\" the source, must acknowledge the copyright and authors of this work..\".\" =========================================================================.\".\" Modified 2004/01/12 23:33:04 by brian.\".\" =========================================================================.so lis.macros.R1bracket-label "\fR[\fB" "\fR]" "\fR, \fB"no-default-databasedatabase lis.refsaccumulatemove-punctuationabbreviate Ajoin-authors ", " ", " " and "et-al " et al" 2 3abbreviate-label-ranges ".."sort-adjacent-labels.R2.\".\".TH MOUNT 9 "2004/01/12 23:33:04" "LiS-2_16_18-8" "Linux STREAMS DDI/DKI".SH NAME.B mount, lis_mount\- mount a file system.SH SYNOPSIS.PP.B #include <sys/stream.h>.br.B #include <sys/dki.h>.HP 8.BI "int " retval " = lis_mount(char *" specialfile ", char *" dir ", char *" filesystemtype ", unsigned long " mountflags ", void *" data );.SH DESCRIPTION.PP.BR mount ()is an.B LiS.[LiS.]wrapper function to the system call.BR mount (2)that can be called from the kernel..PPThe purpose of this function being called from the kernel is to permit STREASMkernel modules to mount their own filesystems. Normally a file system wouldbe mounted by a.IR STREAMS (4)module or driver when the.B Linuxkernel module is initialized (i.e. within the.BR init_module ()function), and unmounted using.BR umount (9)within the kernel module.BR cleanup_module ()function..PPThe arguments to.BR mount ()are the same as to the user system call.BR mount (2)..PP.I specialfileis the name of the device to mount..PP.I diris the directory point at which to attach the file system..I filesystemtypeis the file system type for.IR specialfile ..I mountflagsare the flags used to specify options for mounting the file system..I mountflagscan be as follows:.TP 16.B MS_RDONLYmount the file system read only..TP 16.B MS_NOSUIDignore suid and sgid bits..TP 16.B MS_NODEVrefuse access to device special files..TP 16.B MS_NOEXECdo not permit program execution..TP 16.B MS_SYNCHRONOUSwrites are synchronized immediately..TP 16.B MS_REMOUNTchange the flags for an existing mounted file system..TP 16.B MS_MANDLOCKpermit mandatory locks..TP 16.B MS_NOATIMEdo not change the access times on files..TP 16.B MS_NODIRATIMEdo not change the access times on directories..TP 16.B MS_BINDbind the subtree elsewhere..PP.I datais an argument that is interpreted differently depending on the file systemtype..PPFor additional information, see.BR mount (2)..SH "RETURN VALUE".PPUpon success,.BR mount ()returns zero (0).Upon failure,.BR mount ()returns a negative error number..SH ERRORS.PPWhen.BR mount ()fails, it returns a negative error number that can contain any of the errorslisted under.BR mount (2)..SH CAVEATS.PP.BR mount ()is implemented by changing the data segment to the kernel data segment andcalling.BR mount (2).This means that the.BR uid " and " euidof the caller is not changed.This makes this function rather useless if the process invoking it is not thekernel module loading daemon, or other process running with real rootpermission..SH "SEE ALSO".PP.BR mount (2),.BR lis_umount2 (9),.BR lis_mknod (9),.BR lis_unlink (9)..SH VERSIONS.PPThis manpage was written for.B LiS\c..[LiS.].PP.BR mount ()appeared in SVR 2..\".\".XX.[magic.].[svr42.].[svr4.].\".\".[$LIST$.].TA
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -