summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Logical OR the following flags into the va_mode field:rodrigc2006-06-101-9/+3
| | | | | | | | | S_IFDIR when making a directory S_IFLNK when making a symbolic link S_IFIFO when making a pipe xfs_ialloc() checks this field for these flags when figuring out whether to make a directory, make a symbolic link or make a pipe.
* Move the new flags field to the end of the structure to maintainiedowse2006-06-101-1/+1
| | | | | | ABI compatibility. Suggested by: mlaier (and forgotten by me)
* Call g_vfs_close() if:rodrigc2006-06-101-2/+35
| | | | | (1) _xfs_mount() fails (2) at the end of _xfs_unmount()
* Do not call vput() after we call VOP_UNLOCK().rodrigc2006-06-101-1/+1
|
* Hold on to firmware images until the interface detaches sinceiedowse2006-06-102-5/+17
| | | | | | | | | firmware_get() will not work while resuming. Note that we can't simply drop the FIRMWARE_UNLOAD flag, because that will result in a firmware image that can never be unloaded by the user since the firmware subsystem will hold a linker reference to it (it's not clear that firmware_put() without FIRMWARE_UNLOAD ever does quite what you'd want).
* Keep firmware images on the list until they have been unregisterediedowse2006-06-102-19/+39
| | | | | | | | | | | | | with firmware_unregister(). Previously when the last driver reference had been dropped we would clear the list entry under the assumption that the firmware module was about to be unloaded, but this was not true if the firmware image had been loaded manually with kldload. This makes it possible to manually kldload firmware images as a workaround for drivers such as ipw that attempt to load firmware while resuming after a suspend. Reviewed by: mlaier (an earlier version of the patch)
* Move some functions and definitions from uipc_socket2.c to uipc_socket.c:rwatson2006-06-1012-322/+172
| | | | | | | | | | | | | | | | | | | | | | | | - Move sonewconn(), which creates new sockets for incoming connections on listen sockets, so that all socket allocate code is together in uipc_socket.c. - Move 'maxsockets' and associated sysctls to uipc_socket.c with the socket allocation code. - Move kern.ipc sysctl node to uipc_socket.c, add a SYSCTL_DECL() for it to sysctl.h and remove lots of scattered implementations in various IPC modules. - Sort sodealloc() after soalloc() in uipc_socket.c for dependency order reasons. Statisticize soalloc() and sodealloc() as they are now required only in uipc_socket.c, and are internal to the socket implementation. After this change, socket allocation and deallocation is entirely centralized in one file, and uipc_socket2.c consists entirely of socket buffer manipulation and default protocol switch functions. MFC after: 1 month
* * Ask for a page-aligned page instead of an arbitrary address. This shouldnjl2006-06-101-15/+30
| | | | | | | | not be necessary but might be helpful and at least reduce fragmentation. * Add an assert to detect if the wakecode ever grows too big. We include 1 KB for stack, which should be more than enough also. * Remove unnecessary initialization of static variables. * Add comments and a bootverbose print giving the page phys address.
* Minor tweaks to the resume code. Previous commit reverted alignment backnjl2006-06-101-41/+50
| | | | | | | | | | | | to 4. There is no need to be more strict at assembly time since we copy the code anyway to a private page. * Clear the direction flag and eflags. Probably not necessary but it won't hurt to be safe. * Add prefixes to all instructions to prevent any assembler mistakes. * Remove zeroing of eax - edi. We use those registers immediately after to transfer values to protected mode so this was pointless. * Update comments to reflect info found during code review.
* Move the reset beep tunable/sysctl to debug.acpi.resume_beep. This makesnjl2006-06-102-7/+7
| | | | more sense than under hw.acpi. Also, document this in the man page.
* Minor sysctl cleanup. The RW flag means read|write and so it is redundantnjl2006-06-103-10/+8
| | | | to add the RD flag. Also, the debug node does not need to be writable.
* Enable debug.mpsafevm on arm by default.alc2006-06-101-1/+1
| | | | Tested by: cognet@
* Add a lock assertion. Remove dead (locking) code. Change some whitealc2006-06-101-36/+4
| | | | | | space. Reviewed by: cognet@
* Add ability to reset individual devices and fix SCSI speed negotiation.jkim2006-06-091-50/+48
| | | | Reviewed by: mjacob (initial version)
* Don't expect that 'device random' will compile in those files into thepjd2006-06-091-0/+3
| | | | | | | kernel for us. If random is compiled as kernel module, geom_bde.ko cannot be loaded. Reported by: Michal Suszko <michal@dry.pl>
* Change %llx to %jx in printf() to eliminate warnings on 64-bit platforms.rodrigc2006-06-091-1/+1
|
* Bring back changes in version 1.3 lost in previous commit.rodrigc2006-06-091-13/+1
|
* Accomodate new files due to latest XFS import.rodrigc2006-06-091-3/+3
|
* Makefile changes to accomodate new XFS import.rodrigc2006-06-091-1/+1
|
* More changes due to latest XFS import.rodrigc2006-06-091-188/+267
| | | | Work done by: Russell Cattelan <cattelan at xfs dot org>
* Sync XFS for FreeBSD tree with newer changes from SGI XFS for Linux tree.rodrigc2006-06-09138-17918/+14817
| | | | | | Improve support for writing to XFS partitions. Work done by: Russell Cattelan <cattelan at xfs dot org>
* Add pmap locking to pmap_extract().alc2006-06-091-4/+8
| | | | Tested by: cognet@
* Enable proxy ARP answers on any of the bridged interfaces if proxy recordthompsa2006-06-091-3/+6
| | | | | | | | belongs to another interface within the bridge group. PR: kern/94408 Submitted by: Eygene A. Ryabinkin MFC after: 1 month
* Allow bridge and carp to play nicely together by returning the packet if itsthompsa2006-06-082-3/+17
| | | | | | | destined for a carp interface. Obtained from: OpenBSD MFC after: 2 weeks
* add glue for ath_halsam2006-06-081-0/+11
| | | | MFC after: 1 month
* add powerpc gluesam2006-06-081-0/+2
| | | | MFC after: 1 month
* enable build of ath_hal on sparc64 and powerpcsam2006-06-081-0/+2
| | | | MFC after: 1 month
* Rearrange code in soalloc() so that it's less indented by returningrwatson2006-06-081-13/+13
| | | | | | | early if uma_zalloc() from the socket zone fails. No functional change. MFC after: 1 week
* Update global copyright statement for netatalk, as I claim copyrightrwatson2006-06-081-0/+1
| | | | | | on changes in a number of files in netatalk. MFC after: 1 week
* Lock process when copying fields from process structure so as torwatson2006-06-081-3/+2
| | | | | | | | get a consistent snapshot, as well as get consistent values (i.e., that p_comm is properly nul-terminated). Perforce CID: 98824 Obtained from: TrustedBSD Project
* Prefer C to C++ comments per style(9).rwatson2006-06-081-1/+1
| | | | | Perforce CID: 98826 Obtained from: TrustedBSD Project
* - Merge sys/sparc64/pci/psycho.c rev. 1.8:marius2006-06-081-7/+26
| | | | | | | | | | | | | | | | | | | | | | | | | Map the device memory belonging to resources of type SYS_RES_MEMORY into KVA upon activation so that rman_get_virtual() works as expected. - In sbus_alloc_resource() checking whether toffs is 0 as an indication that no applicable child range was found isn't appropriate as it's perfectly valid for the requested SYS_RES_MEMORY resource to start at the beginning of a child range. So check for the RMAN still being NULL instead. - As a minor runtime speed optimization break out of the loop where we search for the applicable child range in sbus_alloc_resource() as soon as it's found. - Let sbus_setup_intr() return ENOMEM rather than 0 if it can't allocate memory for the interrupt clearing info. - Actually do what the comment in sbus_setup_intr() says and disable the respective interrupt while fiddling with it. - Remove some superfluous INTVEC() around inr, which already only contains the interrupt vector, in sbus_setup_intr(). - While here, fix a style(9) bug in sbus_setup_intr() (don't use function calls in initializers). The first two changes are required for a CG6 driver. MFC after: 2 weeks
* Do not copy out the iovec in the 32bit recvmsg call since soreceiveps2006-06-081-24/+0
| | | | | | | calls uiomove directly. Reviewed by: ups MFC after: 1 week
* Log:davidch2006-06-081-13/+27
| | | | | | | | | | - Removed updates to if_ibytes, if_obytes, if_imcasts, and if_omcasts. These should not be handled by the driver. - Add code to handle excessively fragmented mbufs when mapping TX frames. Reviewed by: ps Approved by: ps (mentor) MFC after: 1 week
* Minor tweaks to the resume code that might help people debug.njl2006-06-083-5/+26
| | | | | | | | | | | | | | * Add hw.acpi.resume_beep tunable and sysctl, default to 0. Beeps the PC speaker soon after waking to diagnose whether the wakeup code is even getting run before other drivers possibly hang the system. To stop the beep, cause another beep (i.e. keyboard bell). Submitted by takawata@, I changed the frequency to be lower. * Use 4096 instead of 4 byte alignment. Might be useful although doesn't seem to be necessary. * Remove a useless assignment to acpi_reset_video. It was overwritten by the default sysctl value anyway.
* Fix gratuitous compiler warning.pjd2006-06-081-1/+2
| | | | Reported by: Rong-en Fan <grafan@gmail.com>
* install_state() should properly initialize 'addr_type' field of newly createdoleg2006-06-081-0/+1
| | | | | | | | | flows for O_LIMIT rules. Otherwise 'ipfw -d show' is unable to display PARENT rules properly. (This bug was exposed by ipfw2.c rev.1.90) Approved by: glebius (mentor) MFC after: 2 weeks
* Fix following rules: pipe X (tag|altq) Y ...oleg2006-06-081-0/+4
| | | | | Approved by: glebius (mentor) MFC after: 2 weeks
* Whitespace.glebius2006-06-081-9/+9
|
* u_intXX -> uintXXglebius2006-06-081-139/+139
|
* Fix the last commit.glebius2006-06-082-3/+8
| | | | | Submitted by: jhb Pointy hat to: glebius
* Fix the LOR that occurs when the MAC compiled into the kernelkib2006-06-081-3/+3
| | | | | | | | | and vnode is destroyed. Reviewed by: rwatson LOR: 189 MFC after: 2 weeks Approved by: kan (mentor)
* Fix spurious warnings from neighbor discovery when working with IPv6 overgnn2006-06-082-8/+53
| | | | | | | | point to point tunnels (gif). PR: 93220 Submitted by: Jinmei Tatuya MFC after: 1 week
* Oops it seems I forgot to remove ARM32_NEW_VM_LAYOUT from here.cognet2006-06-073-3/+0
|
* - style(9) cleanup.glebius2006-06-071-442/+267
| | | | - Fix comments and printf()s about allocating jumbo buffers.
* Add pmap locking to pmap_fault_fixup().alc2006-06-071-16/+7
| | | | | | Add an assertion to pmap_vac_me_harder(). Tested by: cognet@
* bandaid type coercion for ia64sam2006-06-071-2/+2
| | | | Submitted by: marcel
* add ath & co.sam2006-06-071-0/+9
| | | | MFC after: 1 month
* reposition defines so things build on architectures where AH_REGOPS_FUNCsam2006-06-071-14/+14
| | | | is defined
* remove ath hal options; having them here causes opt_ah.h to be clobberedsam2006-06-071-13/+0
| | | | | | | by config and that breaks builds unless one duplicates the options in the config file MFC after: 1 month
OpenPOWER on IntegriCloud