Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Feb 2002 22:11:37 +0100
From:      =?ISO-8859-2?Q?Pawe=B3_Jakub_Dawidek?= <nick@FreeBSD.pl>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   File name.
Message-ID:  <20020203221137.A34994@FreeBSD.pl>

next in thread | raw e-mail | index | archive | help

--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=ISO-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hey.

For example i cantrol fchflags syscall via my kernel module.
I got:
int
n_fchflags(register struct proc *p, register struct fchflags_args)
{
=2E..
}
struct fchflags_args {
        int     fd;
        int     flags;
};

I can get vnode of changed file.
I can get inode number of changed file.
But how can i get file name?

There is a way to get inode when i have file name and p (struct proc), so
maybe there is a way to get file name from inode number and p.

And another thing for chflags syscall.
I got file name, but how can I get full path name for this file?

--=20
Pawe=B3 Jakub Dawidek
Network Administrator.
Am I Evil? Yes, I Am.

--LZvS9be/3tNcYl/X
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia

iQCVAwUBPF2niT/PhmMH/Mf1AQF2vgQAg0OzU4aki4NB+fDQk7ozEC5QCIatiBXn
ncUdAbf0STcS5zGA8Fsb/1WF5jNtuo45dqkKo1E2jNGjh+cTYUr5MgDryzCBBT3u
AFz7RF3Z53pq2rovNtuhyenAtY83epE07bXGGMlQt2H5POnW8+6xc4o/ZeEt+yxz
+YxhstKSUmQ=
=uYHn
-----END PGP SIGNATURE-----

--LZvS9be/3tNcYl/X--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020203221137.A34994>