Deleted Added
full compact
common_kvm.h (241680) common_kvm.h (252356)
1/*-
2 * Copyright (c) 2009 Stanislav Sedov <stas@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2009 Stanislav Sedov <stas@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/lib/libprocstat/common_kvm.h 241680 2012-10-18 12:04:56Z attilio $
26 * $FreeBSD: head/lib/libprocstat/common_kvm.h 252356 2013-06-28 21:00:08Z davide $
27 */
28
29#ifndef _COMMON_KVM_H_
30#define _COMMON_KVM_H_
31
32dev_t dev2udev(kvm_t *kd, struct cdev *dev);
33int kdevtoname(kvm_t *kd, struct cdev *dev, char *);
34int kvm_read_all(kvm_t *kd, unsigned long addr, void *buf,
35 size_t nbytes);
36
37/*
38 * Filesystems specific access routines.
39 */
40int devfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
41int isofs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
42int msdosfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
43int nfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
27 */
28
29#ifndef _COMMON_KVM_H_
30#define _COMMON_KVM_H_
31
32dev_t dev2udev(kvm_t *kd, struct cdev *dev);
33int kdevtoname(kvm_t *kd, struct cdev *dev, char *);
34int kvm_read_all(kvm_t *kd, unsigned long addr, void *buf,
35 size_t nbytes);
36
37/*
38 * Filesystems specific access routines.
39 */
40int devfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
41int isofs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
42int msdosfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
43int nfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
44int smbfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
44int udf_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
45int ufs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
46int zfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
47void *getvnodedata(struct vnode *vp);
48struct mount *getvnodemount(struct vnode *vp);
49
50#endif /* _COMMON_KVM_H_ */
45int udf_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
46int ufs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
47int zfs_filestat(kvm_t *kd, struct vnode *vp, struct vnstat *vn);
48void *getvnodedata(struct vnode *vp);
49struct mount *getvnodemount(struct vnode *vp);
50
51#endif /* _COMMON_KVM_H_ */