IPB
>  Man Pages > Linux > Suse Linux 10.1 > Section 2 > lookup_dcookie man page

lookup_dcookie man page

Section 2 - Suse Linux 10.1 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!


LOOKUP_DCOOKIE(2)          Linux Programmer's Manual         LOOKUP_DCOOKIE(2)




NAME

       lookup_dcookie - return a directory entry's path


SYNOPSIS

       int lookup_dcookie(u64 cookie, char * buffer, size_t len);


DESCRIPTION

       Look  up  the  full  path of the directory entry specified by the value
       cookie The cookie is an opaque identifier uniquely identifying  a  par-
       ticular  directory  entry.  The buffer given is filled in with the full
       path of the directory entry.

       For lookup_dcookie() to return successfully, the kernel must still hold
       a cookie reference to the directory entry.



NOTES

       lookup_dcookie()  is a special-purpose system call, currently used only
       by the oprofile profiler.  It relies on a  kernel  driver  to  register
       cookies for directory entries.

       The  path  returned  may  be suffixed by the string " (deleted)" if the
       directory entry has been removed.



RETURN VALUE

       On success, lookup_dcookie() returns the  length  of  the  path  string
       copied  into  the  buffer.   On error, -1 is returned, and errno is set
       appropriately.


ERRORS

       EFAULT The buffer was not valid.

       EINVAL The kernel has no registered cookie/directory entry mappings  at
              the  time  of  lookup,  or  the cookie does not refer to a valid
              directory entry.

       ENAMETOOLONG
              The name could not fit in the buffer.

       ENOMEM The kernel could not allocate memory for  the  temporary  buffer
              holding the path.

       EPERM  The  process does not have the capability CAP_SYS_ADMIN required
              to look up cookie values.

       ERANGE The buffer was not large enough to hold the path of  the  direc-
              tory entry.


CONFORMING TO

       lookup_dcookie() is Linux-specific.


AVAILABILITY

       Since Linux 2.5.43.  The ENAMETOOLONG error return was added in 2.5.70.



Linux 2.6.7                       2004-06-17                 LOOKUP_DCOOKIE(2)


Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Tue Feb 13 02:17:37 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

sqlite3 man page (5323 hits)
(openSUSE 10.2)

svn man page (5161 hits)
(FreeBSD 6.2)

adv_cap_autoneg man page (4865 hits)
(Solaris 10 11_06)

CPAN man page (4602 hits)
(Suse Linux 10.1)

ssh man page (4337 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (2838 hits)
(Solaris 10 11_06)

netcat man page (2687 hits)
(Suse Linux 10.1)

pprosetup man page (2472 hits)
(Solaris 10 11_06)

startproc man page (2450 hits)
(Suse Linux 10.1)

signal man page (2393 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Travel :: Server Room Temperature Monitor :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum