Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
VOP_ABORTOP(9)	       FreeBSD Kernel Developer's Manual	VOP_ABORTOP(9)

NAME
     VOP_ABORTOP -- abort a directory operation

SYNOPSIS
     #include <sys/vnode.h>

     int
     VOP_ABORTOP(struct	vnode *dvp, struct componentname *cnp);

DESCRIPTION
     This is called after namei(9) when	a CREATE / DELETE isn't	actually done.
     If	a buffer has been saved	in anticipation	of a CREATE, delete it.

     dvp  the vnode of the directory

     cnp  pathname information for the aborted operation

PSEUDOCODE
     int
     vop_abortop(struct	vnode *dvp, struct componentname *cnp)
     {
	 if ((cnp->cn_flags & (HASBUF |	SAVESTART)) == HASBUF)
	     free(cnp->cn_pnbuf, M_NAMEI);

	 return	0;
     }

SEE ALSO
     vnode(9)

AUTHORS
     This man page was written by Doug Rabson.

FreeBSD	11.1			 July 24, 1996			  FreeBSD 11.1

NAME | SYNOPSIS | DESCRIPTION | PSEUDOCODE | SEE ALSO | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=VOP_ABORTOP&sektion=9&manpath=FreeBSD+2.2.1-RELEASE>

home | help