GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
VOP_LINK(9) FreeBSD Kernel Developer's Manual VOP_LINK(9)

̾??

VOP_LINK?ե??????ο?????̾???κ???

<sys/param.h> <sys/vnode.h> int (struct vnode *dvp, struct vnode *vp, struct componentname *cnp)

?????ϡ???¸?Υե????????Ф??? ???ꤷ???ǥ??쥯?ȥ????ο?????̾???????󥯤??ޤ???

?????ϰʲ????̤??Ǥ???

dvp
?ǥ??쥯?ȥ??? vnode??
vp
???󥯤??????ե??????? vnode??
cnp
?ե??????ˤĤ??ƤΥѥ?̾??????

?ѥ?̾?????????????˳??????????٤??Ǥ? ?????ޤ??? ?? ?ʤ??ʤ??С??????ϸƤӽФ?¦?ˤ??äƹԤʤ????뤫???Ǥ??? ?ǥ??쥯?ȥ??ȥե??????? vnode ?????????˲??????????٤??Ǥ? ?????ޤ??? ??

() ?ϥǥ??쥯?ȥꤪ???ӥե??????? vnode ?????????˥??å????졢???????ޤ? ???å?????³???Ƥ??뤳?Ȥ????Ԥ??ޤ???

?ե????뤬????΢?˥??󥯤??줿?????ˤ? 0 ???֤??졢 ?????Ǥʤ??????ˤϥ??顼???֤????ޤ???

int
vop_link(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
{
    int error = 0;

    if (vp->v_mount != dvp->v_mount)
	return (EXDEV);

    if (vp would have too many links)
	return (EMLINK);

    if (vp is immutable)
	return (EPERM);

    /*
     * vp ?Υ??󥯥??????Ȥ򥤥󥯥??????Ȥ????ǥ??????˽????ᤷ?ޤ???
     */
    ...;

    if (!error) {
	/*
	 * ?ǥ??쥯?ȥ??ο?????̾?????ɲä??ޤ???
	 */
	...;
    }

    return error;
}

[EMLINK]
?ե??????Υ??󥯤ο???¿?????ޤ???
[EPERM]
?ե????뤬?ѹ??Բ?ǽ?Ǥ???
[EXDEV]
?ۤʤ??ե????륷???ƥ??֤Ǥϥϡ??ɥ??󥯤????ѤǤ??ޤ?????

vn_lock(9), vnode(9)

???Υޥ˥奢???ڡ????? Doug Rabson ???????ƽ񤭤ޤ?????

July 24, 1996 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 9 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.