Commit Graph

1599 Commits

Author SHA1 Message Date
wiz
6d252519d6 Put argument directly behind macro call. Link to sched_4bsd instead
of removed scheduler(9).
2008-05-25 19:45:43 +00:00
hannken
5d2bff060a Make sure all cached buffers with valid, not yet written data have been
run through copy-on-write.  Call fscow_run() with valid data where possible.

The LP_UFSCOW hack is no longer needed to protect ffs_copyonwrite() against
endless recursion.

- Add a flag B_MODIFY to bread(), breada() and breadn().  If set the caller
  intends to modify the buffer returned.

- Always run copy-on-write on buffers returned from ffs_balloc().

- Add new function ffs_getblk() that gets a buffer, assigns a new blkno,
  may clear the buffer and runs copy-on-write.  Process possible errors
  from getblk() or fscow_run().  Part of PR kern/38664.

Welcome to 4.99.63

Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>
2008-05-16 09:21:59 +00:00
tnn
88a92b676a Change a couple of stray selwakeup references to selnotify.
Also fix typo.
2008-05-13 15:52:51 +00:00
he
e37d711d99 Manually break up the pci_activate() declaration, so that we avoid a
warning from nroff.
2008-05-11 14:15:53 +00:00
martin
7734697b2f Simplify some unclear grammar (sync KASSERT and KDASSERT wording) 2008-05-10 15:39:04 +00:00
martin
5d1469bd77 Backout previous: the license sweep touched these files in error, so
restore the old license.
2008-05-10 15:31:03 +00:00
rumble
8c7664bba5 Typo. 2008-05-10 04:08:59 +00:00
yamt
9cbf394e66 update to match with the recent reality. 2008-05-06 11:32:46 +00:00
yamt
fc066b20a9 update after the following change.
subr_hash.c
	revision 1.3
	date: 2008/05/05 17:11:17;  author: ad;  state: Exp;  lines: +26 -12
	- Convert hashinit() to use kmem_alloc(). The hash tables can be large
	  and it's better to not have them in kmem_map.
	- Convert a couple of minor items along the way to kmem_alloc().
	- Fix some memory leaks.
2008-05-06 10:13:55 +00:00
yamt
508d265a44 document kpreempt_disable, kpreempt_enable, and kpreempt_disabled. 2008-05-06 08:34:35 +00:00
yamt
82ae7f3c2b add a missing .El 2008-05-06 08:32:27 +00:00
plunky
005a75dd15 update disk.9 manpage to current reality
- add disk_init()		(from vmlocking merge)
    - add disk_destroy()	(from vmlocking merge)
    - remove disk_resetstat()	(was removed)
    - update structure defs
    - update examples		(ANSI, const, device_t etc)
2008-05-03 09:43:40 +00:00
martin
cab1b04778 Move to standard 2 clause license 2008-05-02 21:46:19 +00:00
martin
b63f1573d0 Move to 2 clause license 2008-05-02 21:36:23 +00:00
martin
cd22f25e6f Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
reinoud
5fc434dc18 Add a BUFQ_CANCEL() next to BUFQ_PUT() and BUFQ_GET().
BUFQ_CANCEL(queue, element) removes the specified element previously queued
on the queue. It returns NULL if it was not found on the queue and the
element if it was successfully removed.

Run trough tech-kern and changed name from BUFQ_REVOKE() by suggestion of
Jason Thorpe.
2008-04-30 12:09:02 +00:00
mjf
06c9a5d43c Grammar fix. 2008-04-25 14:16:05 +00:00
ad
96947a72d2 Fix typo, PR misc/38474. 2008-04-21 13:00:12 +00:00
riz
de31682369 Catch the documentation up with the changes in vfs_vnops.c revision
1.155 - s/struct file/file_t/, and dropping a struct lwp * arg from
some functions.
2008-04-10 04:43:02 +00:00
xtraeme
0ee95516ea Add MLINKS for the sysmon_envsys_* functions. 2008-04-02 14:49:31 +00:00
jmcneill
2bd589c8a4 Fix paths in CODE REFERENCES section. 2008-03-29 14:12:59 +00:00
xtraeme
87e2fc09d7 The select and poll subsystems are now implemented in sys_select.c
and not sys_generic.c.
2008-03-25 21:51:32 +00:00
yamt
d77618f875 update after yamt-lazymbuf merge. 2008-03-24 12:30:17 +00:00
yamt
1872c2a033 discourage the new use of malloc(9). 2008-03-24 08:24:48 +00:00
mjf
74d757d370 struct componentname has no cn_lwp member anymore. Also update the data
types for the other struct members so they actually reflect sys/sys/namei.h
2008-03-20 18:56:28 +00:00
drochner
fce349e672 update for pmf_device_register1() and the "boothowto" argument to
shutdown handlers
2008-03-03 11:43:18 +00:00
rmind
2fd89ef88a Rename selrecord(9) man page to select(9). Sync selnotify() with reality,
remove selwakeup(), add and explain the usage of selinit() and seldestroy().

Reviewed by <ad>.
2008-03-02 00:30:21 +00:00
xtraeme
5bbe544447 Fix the mb(9) xref. 2008-03-01 22:28:46 +00:00
elad
cd05a6ee9b Introduce a new kauth action, KAUTH_NETWORK_NFS, and two requests,
KAUTH_REQ_NETWORK_NFS_EXPORT and KAUTH_REQ_NETWORK_NFS_SVC, and use them
to replace two KAUTH_GENERIC_ISSUSER calls in the NFS code.

Also replace two more with KAUTH_SYSTEM_MKNOD, where appropriate.

Documetnation and examples updated. More to come.
2008-02-28 17:07:49 +00:00
xtraeme
51e43163c8 Add three new values for ENVSYS_DRIVE units:
* ENVSYS_DRIVE_OFFLINE, ENVSYS_DRIVE_CHECK and ENVSYS_DRIVE_BUILD
2008-02-28 16:21:34 +00:00
elad
67470a76a1 Factor out the guts of get/setparam so it can be used from the compat code.
Make the FreeBSD and Linux compat code convert the parameters to their
native representation and call the native routines.

Remove KAUTH_PROCESS_SCHEDULER_GET/SET.

Update documentation and examples.

XXX: For now, only the Linux compat code does the priority conversion
XXX: right.

Linux priority conversion code from yamt@, thanks!

Okay yamt@.
2008-02-28 16:09:18 +00:00
elad
e99760e7e4 Fold KAUTH_REQ_PROCESS_SCHEDULER_* to KAUTH_PROCESS_SCHEDULER_*. In other
words, don't pass an action and a request, and just use a single action to
indicate what is the operation in question.

This is the first step in fixing PR/37986, which calls for policy/priority
checking in the secmodel code. Right now we're lacking room for another
parameter required to make a decision, and this change makes room for such.
2008-02-16 16:39:34 +00:00
ad
bd48672369 - Clarify how this works.
- Note the locking rules.
2008-02-14 17:39:50 +00:00
ad
d4c279feec - Remove pointless AUTHORS section.
- Remove implementation details.
2008-02-14 17:25:51 +00:00
skrll
49c62025b3 Fix some pastos. 2008-02-13 16:00:18 +00:00
dyoung
e90c5683d4 Suggest #include <sys/evcnt.h> instead of <sys/device.h>, since
the former is sufficient, and the latter pulls in oodles of
unnecessary stuff.
2008-02-11 03:49:13 +00:00
elad
8f8e9e057c Xref security(8) from veriexec(4), veriexec(9), veriexecctl(8), and
veriexecgen(8).

Suggested by Matthew Mondor.
2008-02-10 19:32:23 +00:00
uwe
f2d6229f80 Mark up PMFE_* list properly. 2008-02-03 17:18:18 +00:00
uwe
b5fde352cb pmf_device_register() returns false on error. 2008-02-03 16:56:42 +00:00
elad
e43f626d03 Add, document, and use KAUTH_REQ_PROCESS_KTRACE_PERSISTENT. 2008-02-02 21:04:40 +00:00
elad
cd23f36378 Replace a KAUTH_GENERIC_ISSUSER in the cpuctl code with a proper kauth
request.

Reviewed by ad@, tested by me.
2008-02-01 20:01:06 +00:00
ad
234836feb7 Sync with reality. This is a work in progress. 2008-02-01 09:05:52 +00:00
elad
fb37bad459 Use proper kauth(9) actions/requests for native scheduler stuff and the
recently introduced processor-sets.

Discussed with and okay rmind@, yamt@, and christos@.
2008-01-30 17:54:55 +00:00
ad
162c8882a2 These interfaces have been obsoleted and removed from the system.
Please see the condvar(9), mutex(9), and rwlock(9) manual pages for
     information on kernel synchronisation primitives.
2008-01-30 14:18:53 +00:00
wiz
491885cb8a Document that cv_timedwait with a ticks argument of zero behaves like
cv_wait.
2008-01-26 14:16:27 +00:00
ad
f75e36826b Document returning parameter. Fixes PR misc/37612. 2008-01-24 23:06:10 +00:00
tnn
1b0f7f4f5a Mention vfs_subr2.c. 2008-01-24 07:11:25 +00:00
tnn
9c6c94658e vattr_null lives in vfs_subr2.c now. 2008-01-24 07:02:31 +00:00
elad
3c22fac894 Bump date. 2008-01-23 15:20:54 +00:00