NetBSD/sys/kern
dyoung b3fc296326 Use malloc(9) for sockaddrs instead of pool(9), and remove dom_sa_pool
and dom_sa_len members from struct domain.  Pools of fixed-size
objects are too rigid for sockaddr_dls, whose size can vary over
a wide range.

Return sockaddr_dl to its "historical" size.  Now that I'm using
malloc(9) instead of pool(9) to allocate sockaddr_dl, I can create
a sockaddr_dl of any size in the kernel, so expanding sockaddr_dl
is useless.

Avoid using sizeof(struct sockaddr_dl) in the kernel.

Introduce sockaddr_dl_alloc() for allocating & initializing an
arbitrary sockaddr_dl on the heap.

Add an argument, the sockaddr length, to sockaddr_alloc(),
sockaddr_copy(), and sockaddr_dl_setaddr().

Constify: LLADDR() -> CLLADDR().

Where the kernel overwrites LLADDR(), use sockaddr_dl_setaddr(),
instead.  Used properly, sockaddr_dl_setaddr() will not overrun
the end of the sockaddr.
2007-08-30 02:17:34 +00:00
..
Make.tags.inc Don't run ctags(1) on sys/altq/altq.h, it redefines useful NetBSD 2007-08-10 22:50:12 +00:00
Makefile
bufq_disksort.c Avoid unnecessary cast in bufq_disksort_init(). 2007-02-01 00:36:37 +00:00
bufq_fcfs.c
bufq_priocscan.c TRUE -> true, FALSE -> false 2007-02-22 06:34:42 +00:00
bufq_readprio.c Add a KASSERT to address CID: 4335. 2007-04-04 02:30:43 +00:00
cnmagic.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
core_elf32.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
core_elf64.c
core_netbsd.c remove some __unused from function parameters. 2006-11-01 10:17:58 +00:00
exec_aout.c
exec_conf.c Make this compile under "no options COREDUMP". 2006-08-30 14:41:06 +00:00
exec_ecoff.c
exec_elf32.c Use an elf note to handle pax arguments. This is a temporary solution to 2007-06-24 20:35:36 +00:00
exec_elf64.c
exec_macho.c
exec_script.c Change the way that emulations locate files within the emulation root to 2007-04-22 08:29:55 +00:00
exec_subr.c Change unused fflags parameter in VOP_MMAP to prot and pass in 2007-07-27 08:26:38 +00:00
genlintstub.awk
init_main.c Add cpuctl(8). For now this is not much more than a toy for debugging and 2007-08-04 11:02:56 +00:00
init_sysctl.c Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed 2007-08-15 12:07:23 +00:00
init_sysent.c Regen. 2007-08-15 12:09:12 +00:00
kern_acct.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
kern_auth.c Fix the other inverted test as well. 2007-07-06 17:33:31 +00:00
kern_cctr.c Add sys/kern/kern_cctr.c, which contains MI cpu cyclecounter based 2007-07-21 11:47:07 +00:00
kern_clock.c Shuffle routines which just roll values around from kern_clock.c 2007-08-09 07:36:18 +00:00
kern_condvar.c cv_wakeup: the entire queue has to be searched, as we can't know how many 2007-08-02 22:01:40 +00:00
kern_core.c Remove calls to now obsolete vn_start_write() and vn_finished_write(). 2007-04-03 16:11:31 +00:00
kern_cpu.c Make the uarea cache per-CPU and drain in batches of 4. 2007-08-18 00:21:10 +00:00
kern_descrip.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
kern_drvctl.c drvctlioctl: Plug a possible memory leak. 2007-04-03 23:02:39 +00:00
kern_event.c +#include <sys/conf.h> 2007-07-21 19:23:03 +00:00
kern_exec.c Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed 2007-08-15 12:07:23 +00:00
kern_exit.c proc_free: don't destroy locks until the last LWP is confirmed off the CPU. 2007-08-15 12:20:28 +00:00
kern_fileassoc.c Some Veriexec stuff that's been rotting in my tree for months. 2007-05-15 19:47:43 +00:00
kern_fork.c Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed 2007-08-15 12:07:23 +00:00
kern_idle.c Don't depend on uvm_extern.h pulling in proc.h. 2007-07-21 19:06:20 +00:00
kern_ksyms.c Don't panic if we don't find a symbol or string table. Perhaps the kernel 2007-04-02 16:44:44 +00:00
kern_kthread.c kthread_exit: l->l_name could be NULL. 2007-07-10 23:06:56 +00:00
kern_ktrace.c Fix inverted test in ktrpoint(), NAMI traces weren't being generated. 2007-08-27 13:33:45 +00:00
kern_lkm.c Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
kern_lock.c Define a new lockmgr flag LK_RESURRECT which can be used in 2007-07-29 12:40:37 +00:00
kern_lwp.c sys__lwp_suspend: implement waiting for target LWP status changes (or 2007-08-02 01:48:44 +00:00
kern_malloc.c malloc: fix a deadlock. 2007-04-19 11:03:44 +00:00
kern_malloc_debug.c Pass an ipl argument to pool_init/POOL_INIT to be used when initializing 2007-03-12 18:18:22 +00:00
kern_mutex.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
kern_ntptime.c Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
kern_pax.c Use an elf note to handle pax arguments. This is a temporary solution to 2007-06-24 20:35:36 +00:00
kern_physio.c It's not a good idea for device drivers to modify b_flags, as they don't 2007-07-29 12:15:35 +00:00
kern_proc.c Fix kernel compilation with 'options KSTACK_CHECK_MAGIC': change 2007-08-10 21:50:48 +00:00
kern_prot.c Fix inverted check in sys_setgroups(). 2007-06-30 21:31:41 +00:00
kern_ras.c Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed 2007-08-15 12:07:23 +00:00
kern_resource.c Grab locks in getrusage/getrlimit. 2007-08-08 14:07:11 +00:00
kern_rwlock.c merge yamt-idlelwp branch. asked by core@. some ports still needs work. 2007-05-17 14:51:11 +00:00
kern_sig.c Fix a couple of comments. 2007-08-17 17:25:14 +00:00
kern_sleepq.c Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed 2007-08-15 12:07:23 +00:00
kern_stub.c Fix inverted test in ktrpoint(), NAMI traces weren't being generated. 2007-08-27 13:33:45 +00:00
kern_subr.c Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed 2007-08-15 12:07:23 +00:00
kern_synch.c suspendsched: reduce #ifdef. 2007-08-06 11:48:23 +00:00
kern_sysctl.c Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed 2007-08-15 12:07:23 +00:00
kern_systrace.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
kern_tc.c Timecounters are lockless. Add conservative memory barriers to ensure that 2007-08-17 21:20:24 +00:00
kern_time.c Shuffle routines which just roll values around from kern_clock.c 2007-08-09 07:36:18 +00:00
kern_timeout.c callout_softclock: add a couple of assertions. 2007-08-01 23:23:41 +00:00
kern_todr.c Minor KNF, replace some spaces with tabs. 2006-09-24 18:24:55 +00:00
kern_turnstile.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
kern_uuid.c Constify: LLADDR -> CLLADDR. I'm aiming here to make it easier to 2007-08-26 22:59:08 +00:00
kern_verifiedexec.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
kern_xxx.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
kgdb_stub.c
makesyscalls.sh
sched_4bsd.c Add cpuctl(8). For now this is not much more than a toy for debugging and 2007-08-04 11:02:56 +00:00
subr_autoconf.c Defer callout_startup2() (which calls softintr_establish(9)) call 2007-07-20 22:15:47 +00:00
subr_blist.c
subr_bufq.c It's not a good idea for device drivers to modify b_flags, as they don't 2007-07-29 12:15:35 +00:00
subr_callback.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
subr_debug.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
subr_devsw.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
subr_disk.c It's not a good idea for device drivers to modify b_flags, as they don't 2007-07-29 12:15:35 +00:00
subr_disk_mbr.c It's not a good idea for device drivers to modify b_flags, as they don't 2007-07-29 12:15:35 +00:00
subr_evcnt.c
subr_extent.c Make the regression test build again. 2007-07-10 22:58:54 +00:00
subr_hash.c Move hashinit() & hashdone() from kern_subr.c to subr_hash.c to 2007-07-28 12:53:52 +00:00
subr_iostat.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
subr_kmem.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
subr_lockdebug.c splstatclock, spllock -> splhigh 2007-06-15 20:17:07 +00:00
subr_log.c merge yamt-idlelwp branch. asked by core@. some ports still needs work. 2007-05-17 14:51:11 +00:00
subr_once.c
subr_optstr.c TRUE -> true, FALSE -> false 2007-02-22 06:34:42 +00:00
subr_pool.c pool_drain: add a comment. 2007-08-18 00:37:14 +00:00
subr_prf.c Move bitmask_snprintf() from subr_prf.c to subr_prf_bitmask.c to permit 2007-07-29 09:38:01 +00:00
subr_prf2.c subr_prf_bitmask.c -> subr_prf2.c 2007-08-15 20:34:48 +00:00
subr_prof.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
subr_specificdata.c Remove obsolete comments. 2007-08-18 00:11:00 +00:00
subr_syscall_stats.c Add code to support per-system call statistics: 2007-02-18 16:58:15 +00:00
subr_tftproot.c Add the TFTPROOT kernel option for TFTP'ing root RAMdisk at root mount time. 2007-05-08 06:10:27 +00:00
subr_time.c Shuffle routines which just roll values around from kern_clock.c 2007-08-09 07:36:18 +00:00
subr_userconf.c
subr_vmem.c Implementation of per-CPU work-queues support for workqueue(9) interface. 2007-07-12 20:39:56 +00:00
subr_workqueue.c don't bother to set thread's priority by ourselves, 2007-08-07 12:50:26 +00:00
sys_aio.c According to POSIX, signal should be sent in aio_cancel() case too. 2007-07-11 00:40:42 +00:00
sys_generic.c Only ktrace the part of the buffer actually read/written. 2007-08-27 16:23:16 +00:00
sys_lwp.c sys__lwp_suspend: Handle the possible problem when target LWP might exit via 2007-08-15 02:50:40 +00:00
sys_pipe.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
sys_pmc.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
sys_process.c Merge unobtrusive locking changes from the vmlocking branch. 2007-07-21 19:21:53 +00:00
sys_sched.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
sys_sig.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
sys_socket.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
syscalls.c Regen. 2007-08-15 12:09:12 +00:00
syscalls.conf Version mount(2) so that the length of the 'data' buffer is passed into 2007-07-14 15:41:30 +00:00
syscalls.master - Update for ktrace changes. 2007-08-15 12:08:38 +00:00
sysv_ipc.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
sysv_msg.c msgctl1: fix a lock leak. 2007-03-13 03:43:54 +00:00
sysv_sem.c Remove obsolete comment. 2007-08-17 23:46:34 +00:00
sysv_shm.c fix typos 2007-04-29 20:23:34 +00:00
tty.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
tty_bsdpty.c Remove duplicate #include's 2007-03-26 22:52:44 +00:00
tty_conf.c Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
tty_ptm.c Remove duplicate #include's 2007-03-26 22:52:44 +00:00
tty_pty.c wrap calls to pgsignal() in proclist_mutex 2007-04-17 19:52:56 +00:00
tty_subr.c
tty_tty.c Remove calls to now obsolete vn_start_write() and vn_finished_write(). 2007-04-03 16:11:31 +00:00
uipc_domain.c Use malloc(9) for sockaddrs instead of pool(9), and remove dom_sa_pool 2007-08-30 02:17:34 +00:00
uipc_mbuf.c Pass an ipl argument to pool_init/POOL_INIT to be used when initializing 2007-03-12 18:18:22 +00:00
uipc_mbuf2.c Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
uipc_proto.c Convert to structure initializers. Use __arraycount 2007-02-18 23:16:59 +00:00
uipc_sem.c - ksem_proc_dtor: fix a use-after-free 2007-06-15 18:27:13 +00:00
uipc_socket.c sosetopt: clear SB_AUTOSIZE when setting buffer size explicitly. 2007-08-06 11:41:52 +00:00
uipc_socket2.c TCP socket buffers automatic sizing - ported from FreeBSD. 2007-08-02 02:42:40 +00:00
uipc_syscalls.c ktrace socket control structures (ie msghdr, address etc) using ktrkuser(). 2007-08-27 20:09:44 +00:00
uipc_usrreq.c Add a new socket option for unix domain sockets: LOCAL_PEEREID, to make 2007-08-09 15:23:01 +00:00
vfs_bio.c POOL_INIT -> pool_init, we need to call bufinit() anyway 2007-08-11 19:56:53 +00:00
vfs_cache.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
vfs_getcwd.c Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
vfs_hooks.c
vfs_init.c Move vfs_attach(), vfs_detach() and vfs_reinit() from vfs_subr.c 2007-07-27 14:25:21 +00:00
vfs_lockf.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
vfs_lookup.c Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed 2007-08-15 12:07:23 +00:00
vfs_subr.c more vfs_subr -> vfs_subr2 dance for rump: 2007-08-14 13:51:31 +00:00
vfs_subr2.c more vfs_subr -> vfs_subr2 dance for rump: 2007-08-14 13:51:31 +00:00
vfs_syscalls.c In quotactl, move vrele() to after the VFS call: protects the 2007-08-28 09:28:10 +00:00
vfs_trans.c Use eopnotsupp() instead of vfs_stdsuspendctl() and retire the latter. 2007-07-26 22:57:36 +00:00
vfs_vnops.c Retire uvn_attach() - it abuses VXLOCK and its functionality, 2007-07-22 19:16:04 +00:00
vfs_xattr.c Remove calls to now obsolete vn_start_write() and vn_finished_write(). 2007-04-03 16:11:31 +00:00
vnode_if.c regen: VOP_MMAP fflags -> prot 2007-07-27 08:27:38 +00:00
vnode_if.sh Introduce WILLMAKE for vnode operations which create a new vnode. 2007-07-22 21:26:53 +00:00
vnode_if.src Change unused fflags parameter in VOP_MMAP to prot and pass in 2007-07-27 08:26:38 +00:00