Commit Graph

190910 Commits

Author SHA1 Message Date
jruoho 9bfaa34d66 Build links for rest of the pthread_attr(3) functions.
Hopefully I got all of them right in the setlist...
2010-05-19 20:04:42 +00:00
jruoho 339c78d7ee Add a simple test for timer_create(2) / sigevent(3).
Case for SIGEV_THREAD commented out.
2010-05-19 19:17:08 +00:00
jakllsch fdc252ea81 Changes to ether_nonstatic_aton():
Be more leinent on input string format.  Each nibble pair may optionally be
followed by any of ':', '-', '.' or ' '.

Make source string const and work on a temporary copy.  The caller may not
expect their string to be destroyed.
2010-05-19 18:58:22 +00:00
haad 1b1a9e8e92 Use ddi_copyin and ddi_copyout as solaris does, change them to
ioctl_copyin/ioctl_copyout in kernel and to bcopy in user space.
2010-05-19 18:01:26 +00:00
haad a18cf73bc7 Do not call zfs_init and zfs_fini directly they will be called by vfs routines. 2010-05-19 17:57:42 +00:00
haad d0ec786298 Do not initialize space map cv twice. 2010-05-19 17:50:59 +00:00
phx 9d6a73e36d Implemented support for boot arguments. 2010-05-19 15:05:58 +00:00
phx 75dfa15bd8 Updated Synology extclk from latest Linux/Synology source. 2010-05-19 15:04:51 +00:00
tsutsui ddc1224298 microtime(9) stores struct timeval. bintime(9) stores struct bintime. 2010-05-19 13:41:39 +00:00
pooka a2afe0a788 * document VOP_DELETEEXTATTR
* remove "vector element" from summary table:
   1) deleteextattr caused problems for 80col rendering
   2) it's not correct on NetBSD, we use the VOFFSET instead (!)
2010-05-19 13:20:32 +00:00
christos 9d32a81030 rename the allow and deny files to match the documentation. 2010-05-19 12:50:49 +00:00
pooka f6e5cf7c15 remove three years out-of-date comment 2010-05-19 12:16:45 +00:00
jruoho 9af468c2ef Continue the discussion w.r.t. SIGEV_THREAD by nothing that pthread_join(3)
should be out of the question and that thread stack cannot be recovered.
2010-05-19 08:02:46 +00:00
wiz 1ac335ec2f Sort sections. 2010-05-19 06:59:44 +00:00
jruoho 2096402883 Refer to sigevent(3). 2010-05-19 06:44:51 +00:00
jruoho 2e96a91ae5 Remove the paragraph about the used notification mechanism. Instead,
reference sigevent(3). Clarify the file offset discussion.
2010-05-19 06:35:20 +00:00
jruoho 9a92149c5d Add sigevent(3), a manual page that describes the struct sigevent used by
the POSIX real time functions and timers.

XXX:	(a) Needs to be modified once real time signals are supported.
	(b) Could use an example.
2010-05-19 06:28:53 +00:00
agc 0eeb5498cc One more reason not to use DSA keys:
The DSA algorithm seems to require a digest value which is 20 bytes
long, which kind of implies SHA-1.

If we have a DSA signature, use SHA-1 as a hash algorithm, for backwards
compatibility. RSA signatures continue to use SHA256 by default, although
this can be given as an argument, if desired.

This fixes DSA signatures with netpgp:

% netpgp --sign --userid d4a643c5 a
pub 1024/DSA 8222c3ecd4a643c5 2010-05-19 [EXPIRES 2013-05-18]
Key fingerprint: 3e4a 5df4 033b 2333 219b 1afd 8222 c3ec d4a6 43c5
uid              Alistair Crooks (DSA TEST KEY - DO NOT USE) <agc@netbsd.org>
sub 1024/DSA 8222c3ecd4a643c5 2010-05-19 [EXPIRES 2013-05-18]
netpgp passphrase:
% netpgp --verify a.gpg
Good signature for a.gpg made Tue May 18 05:41:25 2010
using DSA key 8222c3ecd4a643c5
pub 1024/DSA 8222c3ecd4a643c5 2010-05-19 [EXPIRES 2013-05-18]
Key fingerprint: 3e4a 5df4 033b 2333 219b 1afd 8222 c3ec d4a6 43c5
uid              Alistair Crooks (DSA TEST KEY - DO NOT USE) <agc@netbsd.org>
sub 1024/DSA 8222c3ecd4a643c5 2010-05-19 [EXPIRES 2013-05-18]
%
2010-05-19 02:50:16 +00:00
wiz 69d3a7e4fd Add gpt(8) and sort SEE ALSO (case insensitively). Bump date. 2010-05-18 23:34:40 +00:00
wiz 8d31c36840 Mention that dkctl(8) does not modify on-disk data, and add xrefs to
fdisk(8) and gpt(8). Bump date.
2010-05-18 23:33:03 +00:00
christos 71a5eeb0d1 - The new cron keeps time internally as localtime. Revert to previous behavior
of keeping UTC, and handle timezones the way we handled them before (CRON_TZ).
  The old behavior can be selected with defining CRON_LOCALTIME.
- Provide functions to pretty-print crontab entries.
2010-05-18 21:49:51 +00:00
christos e8894454ad Forgot to commit this:
Bring back the default to allow any user to install crontabs.
2010-05-18 21:47:43 +00:00
martin d806a53fa5 Add missing include 2010-05-18 20:18:18 +00:00
wiz d9175b29a9 Split "file system" and fix a typo. 2010-05-18 18:05:52 +00:00
wiz 87c3d5913f Slight wording improvement. 2010-05-18 18:02:32 +00:00
pooka 0f6a90c207 Whoops, default to MP locking. 2010-05-18 16:30:22 +00:00
pooka d47455e39d Add uniprocessor versions of mutex/rw/cv. They work only on virtual
unicpu configurations (i.e. RUMP_NCPU==1), but are massively faster
than the multiprocessor versions since the fast path does not have
to perform any cache coherent operations.  _Applications_ with
lock-happy kernel paths, i.e. _not_ lock microbenchmarks, measure
up to tens of percents speedup on my Core2 Duo.  Every globally
atomic state required by normal locks/atomic ops implies a hideous
speed penalty even for the fast path.

While this requires a unicpu configuration, it should be noted that
we are talking about a virtual unicpu configuration.  The host can
have as many processors as it desires, and the speed benefit of
virtual unicpu is still there.  It's pretty obvious that in terms
of scalability simple workload partitioning and replication into
multiple kernels wins hands down over complicated locking or
locklessing algorithms which depend on globally atomic state.
2010-05-18 16:29:36 +00:00
pooka a955550ec3 Namespace rump-only kernel biglock routines appropriately.
No functional change.
2010-05-18 15:16:10 +00:00
pooka fdeac1d7df Move routines related to kernel locking and scheduling from
locks.c to klock.c.

No functional change.
2010-05-18 15:12:19 +00:00
haad 58b6472739 Add multi device strip support written by Guillermo Amaral and reviewed by me. 2010-05-18 15:10:41 +00:00
haad fb8751aba4 Add support for DIOCCACHESYNC ioctl for dm devices. Add new sync function
pointer to dm_target_t because that is the only part of dm which know real
block device. disk_ioctl_switch parses whole device table and for every
entry it calls particular sync routine which propagates DIOCCACHESYNC
to real disk.

While I was here implement some KNF fixes and remove unneeded symbols from
dm.h.

Problem reported on port-xen@ by Hugo Silva.
2010-05-18 15:10:38 +00:00
phx 923bf0dda0 Recognize a network boot device by its PCI tag, even when it is not directly
attached to a PCI bus, but to a controller chip (e.g. sk(4) on skc(4)).
Extended BTINFO_NET to usa a PCI tag as well, now since it works.
2010-05-18 15:07:50 +00:00
haad c8688b58cc Fix typo in comment. 2010-05-18 15:01:17 +00:00
pooka b1b7862792 Make it possible to use the scheduler lock as the rumpuser condvar
interlock.  This is applicable in cases where the actual interlock
is the CPU the currently running thread is scheduled on.  Borrowing
the scheduler lock as the mutex mandated by pthread_cond_wait()
does away with need to have an additional mutex.  This both optimizes
runtime execution and simplifies code, as the extra lock typically
lead to quite some trickeries to avoid the dungeon collapsing due
to zaps from the wand of deadlock.
2010-05-18 14:58:41 +00:00
phx 49d7cce48e Set Synology extclk from 33.333333MHz to 33.164526MHz, which reduces the
error in the mftb timer from 5% to 0.002%.
The console port for QNAP and STORCENTER is 0x4500, not 0x4600.
2010-05-18 14:32:38 +00:00
jruoho ba65e80ee0 Macros, not functions. 2010-05-18 11:20:12 +00:00
phx 577758b699 Synology PCI fixup, submitted by Toru Nishimura. 2010-05-18 10:41:30 +00:00
jruoho 177daa903e Fix .Nd. 2010-05-18 09:10:03 +00:00
jruoho 376c7b5fe6 Describe also the timespec() family of macros in timeradd(3). 2010-05-18 09:07:37 +00:00
jruoho 4e56c5c6e0 Fix a typo. 2010-05-18 07:31:15 +00:00
jruoho 51e86d90ef Refer to timeval(3) and only describe the legacy struct timezone here.
Improve markup.
2010-05-18 07:14:18 +00:00
jruoho 497c121b01 Add an introductory example. 2010-05-18 07:04:27 +00:00
jruoho cd2244d3a2 Xref timespec(3). 2010-05-18 06:31:17 +00:00
jruoho b01de5affa Note timeval(9). Add %D to the .Rs/.Re. 2010-05-18 06:05:08 +00:00
jruoho 1c11137b95 Note that struct bintime is described in timecounter(9). Improve wording. 2010-05-18 05:57:07 +00:00
mrg 121098a3ec move the mutex_init() for ci_ctx_lock inside cpu_attach() so that
we don't try to mutex_init() before lockdebug is available.

fixes LOCKDEBUG crashes at startup (for USII systems.)
2010-05-18 04:30:16 +00:00
jakllsch 4151797e7b Use wput_utf8() to improve conversion of UTF-16 GPT partition names to UTF-8.
Drop static CRC32 function in favor of the one from libkern.
2010-05-17 23:09:52 +00:00
phx b2b23a924e Excluded KUROBOX from GENERIC.NAS because console is on a different port.
Add INET6 option to GENERIC(.NAS).
Build KUROBOX kernel together with GENERIC and GENERIC.NAS.
Patch submitted by Toru Nishimura.
2010-05-17 22:52:17 +00:00
jruoho f6554b77a6 Due previous, remove STANDARDS. 2010-05-17 20:32:09 +00:00
jruoho ccf0fdd5d1 Briefly describe and note also struct bintime. 2010-05-17 20:25:19 +00:00