Commit Graph

10600 Commits

Author SHA1 Message Date
hannken
72439b7dc8 Current support for iterating over mnt_vnodelist is rudimentary. Every
caller has to care about list and vnode mutexes, reference count being zero,
intermediate vnode states like VI_CLEAN, VI_XLOCK, VI_MARKER and so on.

Add an interface to iterate over a vnode list:

void vfs_vnode_iterator_init(struct mount *mp, struct vnode_iterator **marker)
void vfs_vnode_iterator_destroy(struct vnode_iterator *marker)
bool vfs_vnode_iterator_next(struct vnode_iterator *marker, struct vnode **vpp)

vfs_vnode_iterator_next() returns either "false / *vpp == NULL" when done
or "true / *vpp != NULL" to return the next referenced vnode from the list.

To make vrecycle() work in this environment change it to

bool vrecycle(struct vnode *vp)

where "vp" is a referenced vnode to be destroyed if this is the last reference.

Discussed on tech-kern.

Welcome to 6.99.34
2014-03-05 09:37:29 +00:00
wiz
bbb72bf83b Prefix link to cpsw with 'evbarm'. 2014-03-03 09:10:46 +00:00
wiz
4fc55b00e4 New sentence, new line. 2014-03-03 09:10:00 +00:00
ozaki-r
aaaf6db810 Add micphy.4 2014-03-03 02:03:31 +00:00
ozaki-r
8ef5b2745a Mention micphy(4) 2014-03-03 01:36:21 +00:00
ozaki-r
bd237efb46 Add micphy(4) manpage 2014-03-03 01:35:08 +00:00
hannken
2b6ec89863 The current implementation of vn_lock() is racy. Modification of
the vnode operations vector for active vnodes is unsafe because it
is not known whether deadfs or the original file system will be
called.

- Pass down LK_RETRY to the lock operation (hint for deadfs only).

- Change deadfs lock operation to return ENOENT if LK_RETRY is unset.

- Change all other lock operations to check for dead vnode once
  the vnode is locked and unlock and return ENOENT in this case.

With these changes in place vnode lock operations will never succeed
after vclean() has marked the vnode as VI_XLOCK and before vclean()
has changed the operations vector.

Adresses PR kern/37706 (Forced unmount of file systems is unsafe)

Discussed on tech-kern.

Welcome to 6.99.33
2014-02-27 16:51:37 +00:00
skrll
6d3ceb1d61 Rename NetBSD/hp700 to NetBSD/hppa.
Unfortunately our VCS isn't very helpful here.
2014-02-24 07:23:38 +00:00
dholland
c48557ca9a Fix examples, from Henning Petersen in PR misc/48612. 2014-02-22 17:29:13 +00:00
wiz
e917ca9ede Use more markup. Add "flag" in a sentence. 2014-02-22 11:28:18 +00:00
wiz
be49b9a869 Mark up NULL with Dv. 2014-02-22 11:08:05 +00:00
hannken
6935b8d9a0 Update arguments of vrecycle(), description of getnewvnode() and
the vnode flags.
2014-02-22 10:08:12 +00:00
hannken
8a81f374a4 Update the description of vfs_busy() and vfs_unbusy(). 2014-02-22 10:05:54 +00:00
jdc
679f6e9d0e Add manual page for tsciic and cross reference it from related pages. 2014-02-21 12:26:00 +00:00
wiz
2db2e12a03 Fix typo in Dd. 2014-02-14 07:29:06 +00:00
christos
d46692d173 mention ibss and hostap support 2014-02-14 04:24:41 +00:00
wiz
0ccfefc58a Mark up author name with An. 2014-02-07 16:57:05 +00:00
hannken
97834f7ba0 Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.

Discussed on tech-kern@

Welcome to 6.99.31
2014-02-07 15:29:20 +00:00
wiz
01b245946f Wording. New sentence, new line. filesystem -> file system. 2014-02-02 08:34:39 +00:00
manu
70aead41ff Add EMUL_NATIVEROOT so that native binaries can be told to search an
"emulation" directory before the real root. This makes easier to test
an amd64 kernel on the top of an i386 root filesystem prior a full
migration.
2014-02-02 04:28:42 +00:00
pgoyette
50bc862539 Update CIOGFSESSION argument spec to match reality 2014-01-27 21:23:59 +00:00
skrll
3468e012de Fix eraseo from yesterday 2014-01-23 16:35:20 +00:00
wiz
5a90ecf827 New sentence, new line. Sort sections. Remove superfluous Pp.
Add missing .El.
2014-01-23 15:17:59 +00:00
wiz
acfab9e197 Spell out month name. 2014-01-23 14:12:38 +00:00
ryoon
eb9e4d7489 Add urndis(4), bump date, and copyright year 2014-01-23 13:05:04 +00:00
hannken
04c776e5c8 Change vnode operations create, mknod, mkdir and symlink to return
the resulting vnode *vpp unlocked.

Discussed on tech-kern@

Welcome to 6.99.30
2014-01-23 10:13:55 +00:00
skrll
deae578450 Update a little (don't trust myself to update anymore). Fix a macro
problem while I'm here.
2014-01-22 23:43:13 +00:00
mlelstv
45ab26459f Add igmafb man page. 2014-01-21 16:12:56 +00:00
hannken
1139274440 Change vnode operations create, mknod, mkdir and symlink to keep the
directory node dvp locked on return.

Discussed on tech-kern@

Welcome to 6.99.29
2014-01-17 10:55:01 +00:00
christos
2b043c75b6 eliminate use of bsd.sys.mk from Makefiles 2014-01-16 01:15:32 +00:00
apb
07c206b653 Document random_seed and random_file. 2014-01-15 11:42:43 +00:00
wiz
252a57e3a8 whitespace. 2014-01-10 09:43:15 +00:00
dholland
b510fd7487 Clarify the behavior of the @machine and @machine_arch magic links
relative to uname output when running in emulations: the magic links
are *not* affected even though uname output changes.

(This means @machine magic links can be used for e.g. amd64 vs. i386
device nodes. There's also an @emul magic link for emulation.)

Noted by apb.
2014-01-09 18:55:41 +00:00
mbalmer
8905acc60a Use 5.2 usage pattern in the synopsis. 2014-01-07 21:54:17 +00:00
njoly
32806908ee Kill one more trailing space in function argument. 2014-01-06 14:57:10 +00:00
njoly
fa8cf4e111 Remove extra trailing spaces in functions arguments. 2014-01-06 13:59:00 +00:00
wiz
079d5678c6 Remove core.9lua, now called systm.9lua. 2014-01-06 13:05:47 +00:00
wiz
3181678dad Use more markup. Fix a typo. 2014-01-06 13:03:33 +00:00
wiz
a760028eaf Add xrefs to pmf(9lua) and systm(9lua) 2014-01-06 13:03:01 +00:00
wiz
465d58a2d8 Use Fn for functions and Dv for null. 2014-01-06 09:30:26 +00:00
wiz
7da1f424ab Fix article. 2014-01-06 09:25:08 +00:00
wiz
f5b7cc347b Use Nx. Remove superfluous Pp. Increase column width to widest entry. 2014-01-06 09:23:18 +00:00
wiz
d778b71bd0 New sentence, new line. 2014-01-04 15:41:59 +00:00
wiz
2903717cc7 Sort sections. 2014-01-04 15:40:25 +00:00
pgoyette
2a3b433915 Clear up documentation for crypto_unregister() vs crypto_unregister_all()
since there is no definition of CRYPTO_ALGORITHM_ALL!

XXX The description of the arguments for crypto_register() needs further
updates, too, but that will be left for another day.
2013-12-31 01:55:05 +00:00
dholland
9b72241e07 Add cross reference to mount_fdesc(8), as noted a while back in PR 45694.
Also add a note that the floppy driver is documented in fdc(4). Bump date.
2013-12-30 08:42:00 +00:00
msaitoh
bcf70d1755 Add support For I354(C2000 interna Ethernet controller):
- Add I354 support.
 - Fix SGMII+MDIO case. SGMII+I2C is not supported yet.
 - Not tested well.
 - Sprinkle "XXX" to check later.
2013-12-29 21:28:41 +00:00
christos
1c9c725051 remove dup file 2013-12-28 17:35:01 +00:00
pgoyette
a6570d4710 Update description to include Realtek 8211, to match contents of
sys/dev/mii/miidevs
2013-12-28 13:57:19 +00:00
njoly
5548fe6341 Remove a few unneeded paragraph macros. No output change. 2013-12-26 11:11:53 +00:00