summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2005-05-27remove references of VOP_WHITEOUT from the kernel, okay millert@Pedro Martelletto
2005-05-27prepare the removal of sys_undelete(), make it a stub, okay millert@Pedro Martelletto
2005-05-27add a field to struct socket that stores the pid of the process thatDaniel Hartmeier
created the socket, and populate it. ok bob@, henning@
2005-05-27Experimental support for opportunitic use of jumbograms where only some hostsRyan Thomas McBride
on the local network support them. This adds a new socket option, SO_JUMBO, and a new route flag, RTF_JUMBO. If _both_ the socket option is set and the route for the host has RTF_JUMBO set, ip_output will fragment the packet to the largest possible size for the link, ignoring the card's MTU. The semantics of this feature will be evolving rapidly; talk to us if you intend to use it. ok deraadt@ marius@
2005-05-27still union/umap/null leftoversPedro Martelletto
2005-05-26styling nits, ok marius@Pedro Martelletto
2005-05-26add a reverse name mapping into the namecache. (vnode->name)marius eriksen
this will help speedup getcwd (coming soon). ok pedro@
2005-05-26remove union et al traces; pedro@ ok.Federico G. Schwindt
2005-05-26remove traces from union et al; pedro@ ok.Federico G. Schwindt
2005-05-26Fix yield() to change p_stat from SONPROC to SRUN.Artur Grabowski
yield() is not used anywhere yet, that's why we didn't notice this. Noticed by tedu@ who just started using it.
2005-05-26RIP stackable filesystems, ok marius@ tedu@, discussed with deraadt@Pedro Martelletto
2005-05-25This patch is mortly art's work and was done *a year* ago. Art wants to thankNiklas Hallqvist
everyone for the prompt review and ok of this work ;-) Yeah, that includes me too, or maybe especially me. I am sorry. Change the sched_lock to a mutex. This fixes, among other things, the infamous "telnet localhost &" problem. The real bug in that case was that the sched_lock which is by design a non-recursive lock, was recursively acquired, and not enough releases made us hold the lock in the idle loop, blocking scheduling on the other processors. Some of the other processors would hold the biglock though, which made it impossible for cpu 0 to enter the kernel... A nice deadlock. Let me just say debugging this for days just to realize that it was all fixed in an old diff noone ever ok'd was somewhat of an anti-climax. This diff also changes splsched to be correct for all our architectures.
2005-05-24add a new field to vm_space and use it to track the number of anonTed Unangst
pages a process uses. this is now the userland "data size" value. ok art deraadt tdeval. thanks testers.
2005-05-24when a device vnode associated with a mount point disappears, mark thePedro Martelletto
filesystem as doomed and unmount it
2005-05-24better handling of disappearing devices, in spec_close(), don't try toPedro Martelletto
double-lock the vnode if we're coming from vclean()
2005-05-22put VLOCKSWORK stuff under a single option, VFSDEBUGPedro Martelletto
2005-05-22regenPedro Martelletto
2005-05-22change VOP_CLOSE to take a locked vnodePedro Martelletto
2005-05-22output code for incoming VFSDEBUG optionPedro Martelletto
2005-05-17under some circunstances, unp_scan() can call unp_mark() with a null pointer,Federico G. Schwindt
so check fp before dereferencing it; fixes a crash found by hshoexer@ with input from art@, art@ millert@ deraadt@ ok.
2005-05-03clean up some small fallout from initial freebsd import.Hans-Joerg Hoexer
ok grange@
2005-05-01check for VBIOONFREELIST and VBIOONSYNCLIST in vprint(), okay marius@Pedro Martelletto
2005-04-21Correctly handle allocations of size 1 at an extent boundary; from NetBSD.Miod Vallat
2005-04-21Make the non-_KERNEL compilation usable again, in order to add a regress test.Miod Vallat
2005-04-21unused variable n; ok cloderTheo de Raadt
2005-04-20knfTheo de Raadt
2005-04-16Remove regs and fpregs pseudo-files from procfs.Mark Kettenis
ok deraadt@, miod@
2005-04-14Try to start log message buffer on a new line. Helps install scripts avoidKenneth R Westerback
detecting phantom devices when scanning dmesg output. Suggested by miod@, ok deraadt@.
2005-04-11pull in new MD STACKGAP_RANDOMTheo de Raadt
2005-04-03Implemente PT_[GS]ETXMMREGS ptrace(2) requests on i386.Mark Kettenis
ok deraadt@
2005-03-29Bring in UDF support from FreeBSD, disabled for now.Pedro Martelletto
2005-03-24always good to check for invalid values. ok marius pedroTed Unangst
2005-03-15revise lockf limit policy. after exceeding "soft limit", start enforcingTed Unangst
a hard limit of 2x. add a comment to this effect. reviewed by miod
2005-03-10split out uidinfo from kern_proc.c private, use it to store lock count,Ted Unangst
restrict lock count per uid to a global limit, add sysctl to adjust limit. this prevents a user from creating too many locks. problem noticed by devon o'dell. ok deraadt miod pedro
2005-03-09Fail exec for disabled compat with EPERM rather than ENOEXEC.Miod Vallat
ok deraadt@ mickey@ millert@
2005-03-04Fix handling of names bigger than NCHNAMLEN in cache_enter(), okay tedu@Pedro Martelletto
2005-02-24fix pr4036, don't set p2->p_cpu to nullTed Unangst
ok deraadt miod markus
2005-01-28When setting kern.tty.maxptys, store the old value in oldp, notTodd C. Miller
random stack garbage. Rename DEFAULT_NPTYS and DEFAULT_MAXPTYS to NPTY_MIN and NPTY_MAX to better match their function and don't allow setting kern.tty.maxptys > NPTY_MAX.
2005-01-14First step in Bluetooth protocol stack support.Alexander Yurchenko
The code is adopted from the FreeBSD netgraph-based Bluetooth implementation by Maksim Yevmenkin <m_evmenkin@yahoo.com> but all netgraph glue was replaced with usual BSD network stack hooks. This is a work in progress. Only HCI layer works for now, L2CAP and RFCOMM are on the way. Help in testing from many, ok markus@.
2005-01-10change vget() to only put a vnode back on the free lists if it actuallyPedro Martelletto
was there. should fix a (rare) corner case introduced by my last commit. ok tedu@, testing by joris, moritz@, danh@, otto@ and krw@. many thanks.
2005-01-012005Michael Shalayeff
2004-12-31sprinkle some more list macros in herePedro Martelletto
2004-12-31when releasing a vnode, make it inactive before sticking it to one ofPedro Martelletto
the free lists. should fix some races on filesystems that don't have locks, such as nfs. also, it allows for a more straightforward way of releasing vnodes (nodes that are going to be recycled don't have to be moved to the head of the list). tested by many, thanks. ok tedu@ deraadt@
2004-12-30Import M_CANFAIL support from NetBSD, removes a nasty panic during low-mem ↵Niklas Hallqvist
scenarios, instead generating an ENOMEM backfeed, ok tedu@, prodded by many
2004-12-28when panicing from timeout_add being < 0, print the value; ok miodTheo de Raadt
2004-12-28clean dirty accident by miodTheo de Raadt
2004-12-26Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no change in compiler assembly output.
2004-12-24Do not provide the KERN_EMUL, KERN_EVCOUNT, KERN_INTRCNT, KERN_PROC* andMiod Vallat
HW_SENSORS sysctl trees if option SMALL_KERNEL. ok deraadt@
2004-12-19Set atime and mtime when giving out a new pty. With help from tholo@Todd C. Miller
and OK tedu@
2004-12-12simplify slightly, kill lvalue weirdness that's not ANSI C.Marc Espie
okay nordin@