The NetBSD Project

CVS log for src/sys/sys/vfs_syscalls.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / sys

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.29 / (download) - annotate - [select for diffs], Sun Nov 7 13:47:49 2021 UTC (2 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (unified)

Merge the kernel portion of the posix-spawn-chdir project by Piyush Sachdeva.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Apr 20 21:39:05 2020 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (unified)

Rename buf_syncwait() to vfs_syncwait(), and have it wait on v_numoutput
rather than BC_BUSY.  Removes the dependency on bufhash.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Feb 23 22:14:04 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base1, bouyer-xenpvh-base, ad-namecache-base3
Branch point for: bouyer-xenpvh
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (unified)

Merge from ad-namecache:

- Have a stab at clustering the members of vnode_t and vnode_impl_t in a
  more cache-conscious way.  With that done, go back to adjusting v_usecount
  with atomics and keep vi_lock directly in vnode_impl_t (saves KVA).

- Allow VOP_LOCK(LK_NONE) for the benefit of VFS_VGET() and VFS_ROOT().
  Make sure LK_UPGRADE always comes with LK_NOWAIT.

- Make cwdinfo use mostly lockless.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Sep 26 01:34:16 2019 UTC (4 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (unified)

make nmountcompatnames unsigned (assigned from __arraycount, compared with
unsigned in compat code)

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jun 20 03:31:54 2019 UTC (4 years, 10 months ago) by kamil
Branch: MAIN
CVS Tags: netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (unified)

Add mkfifo{,at}(2) mode in mknod{,at}(2) as requested by POSIX

mknod with mode & S_IFIFO and dev=0 shall behave like mkfifo.

Update the documentation to reflect this state.

Add ATF tests.

This is an in-kernel implementation as typically user-space programs use
mkfifo(2) directly, however whenever there is need to bypass libc (like in
valgrind) then portable POSIX software calls the mknod syscall.

Noted on tech-kern@ by Greg Troxel.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jun 18 22:34:26 2019 UTC (4 years, 10 months ago) by kamil
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (unified)

Drop unused retval pointer from do_sys_mknod{,at}()

No functional change intended.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jul 29 04:02:49 2017 UTC (6 years, 8 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20190609, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, nick-nhusb-base-20170825, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.22: +4 -1 lines
Diff to previous 1.22 (unified)

Declare mountcompatnames in sys/vfs_syscalls.h to kill nested extern.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Jan 25 02:28:31 2014 UTC (10 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: nick-nhusb
Changes since 1.21: +4 -1 lines
Diff to previous 1.21 (unified)

expose do_open

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 18 01:31:42 2013 UTC (10 years, 5 months ago) by chs
Branch: MAIN
Changes since 1.20: +7 -3 lines
Diff to previous 1.20 (unified)

expose various do_*at() functions for compat_linux.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jul 18 14:06:27 2013 UTC (10 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.19: +4 -2 lines
Diff to previous 1.19 (unified)

Make do_sys_utimensat public

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jul 18 13:41:08 2013 UTC (10 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (unified)

export do_sys_statat for netbsd32

Revision 1.18 / (download) - annotate - [select for diffs], Tue Mar 13 18:41:02 2012 UTC (12 years, 1 month ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet, riastradh-drm2
Changes since 1.17: +1 -3 lines
Diff to previous 1.17 (unified)

Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

    http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
    http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
    http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Feb 1 05:39:28 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (unified)

Split out a do_sys_quotactl for compat_netbsd32.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Aug 17 09:29:59 2011 UTC (12 years, 8 months ago) by manu
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (unified)

Missing bit in previous commit: do_sys_utimens prototype in the right
place.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jun 5 09:04:22 2011 UTC (12 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (unified)

Don't directly call sys_sync() from random bits of code, instead
  add do_sys_sync() that takes an 'lwp' (for l_cred) as an argument.
Explicitly pass &lwp0 rather than NULL and expecting sys_sync to
  substitute some random lwp.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 30 15:44:55 2010 UTC (13 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr, cherry-xenmp
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (unified)

Enable kernel-internal symlink creation with do_sys_symlink().
I did this a while ago already, but can't remember why i didn't
commit it then.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Aug 9 22:49:00 2009 UTC (14 years, 8 months ago) by haad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.12: +4 -3 lines
Diff to previous 1.12 (unified)

Add enum uio_seg argument to do_sys_mknod and do_sys_mkdir so these functions
can be called from kernel, too.

Change needed for zfs device node creation, until we have propoer devfs.

Oked by ad@.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Aug 1 21:17:12 2009 UTC (14 years, 8 months ago) by bad
Branch: MAIN
Changes since 1.11: +4 -1 lines
Diff to previous 1.11 (unified)

As discussed on tech-kern:

Factor out common code of chroot-like syscalls into change_root() and export
that function for use in other parts of the kernel.
Rename change_dir() to chdir_lookup() as the latter describes better what
the function does.  While there, move the namei_data initialisation into
chdir_lookup(), too.  And export chdir_lookup().

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 2 12:56:40 2009 UTC (14 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, jymxensuspend-base
Changes since 1.10: +27 -1 lines
Diff to previous 1.10 (unified)

slap a run-of-the-mill tnf copyright here

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 2 12:53:47 2009 UTC (14 years, 9 months ago) by pooka
Branch: MAIN
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (unified)

expose mkdir to in-kernel consumers

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:56 2009 UTC (15 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, jym-xensuspend-base
Branch point for: jym-xensuspend
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (unified)

merge christos-time_t

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 19 10:37:27 2008 UTC (15 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (unified)

include <sys/fstypes.h>

Revision 1.7 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:01 2008 UTC (16 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1, ad-socklock-base1
Branch point for: yamt-nfs-mp, nick-hppapmap, haad-dm, christos-time_t
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (unified)

Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Mar 11 20:40:58 2008 UTC (16 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (unified)

missed this

Revision 1.5 / (download) - annotate - [select for diffs], Mon Dec 24 15:04:19 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.4: +4 -1 lines
Diff to previous 1.4 (unified)

Export do_sys_unlink, do_sys_rename to the rest of the kernel.

Revision 1.4 / (download) - annotate - [select for diffs], Sat May 12 17:28:20 2007 UTC (16 years, 11 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: yamt-lazymbuf, vmlocking2, matt-armv6, bouyer-xeni386
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (unified)

Change the compat sys_[fl]utime code to not use the stackgap.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Apr 30 08:32:14 2007 UTC (16 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.2: +7 -5 lines
Diff to previous 1.2 (unified)

Split the statvfs functions so that the 'work' is done to a kernel buffer
which can either be copied directly to userspace, or converted then copied.
Saves replicating a lot of code in the compat functions (esp. for
getvfsstat) at a cast of an extra function call in the non-emulated case -
which is unlikely to be measurable given the other costs of the actions
involved (even on vax).
Remove dofhstat() and dofhstatvfs() (and the last caller).
Remove some redundant stackgap_init() calls.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 11 19:34:55 2007 UTC (17 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: yamt-idlelwp, mjf-ufs-trans
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (unified)

Add a tentative definition for 'struct statvfs'.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Mar 10 16:50:01 2007 UTC (17 years, 1 month ago) by dsl
Branch: MAIN
Branch point for: vmlocking

Split the work for sys_stat, sys_lstat, sys_fstat and sys_fhstat out into
separate functions that don't do the copyout.
This allows all the compat_xxx versions to convert the 'struct stat' to
the correct format without using the 'stackgap'.
The stackgap isn't at all LWP friendly, and needs to be removed from
any compat functions that might involve threads (inc. clone()).
The code is still binary compatible with existing LKMs.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>