| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
include files to provide functions for kernel source (spans_kxdr.c)
|
| |
|
|
|
|
|
|
|
| |
breaking application ABI use unused ifreq.ifru_flags[1] for upper 16 bits in
SIOCSIFFLAGS and SIOCGIFFLAGS ioctl's.
Reviewed by: -hackers, -net
|
| |
|
|
|
|
|
| |
- Convert DMA_GET_ADDR() calls to vtophys() calls in order to finish
removing the DMA_* macros.
|
|
|
|
| |
- Change SCHED_ATM statements into schednetisr() calls.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
within the HARP atm stack and the hea and hfa device drivers, but since
all of these systems were changed to use UMA zones, there is no use for
the api any longer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the necesary uma_zcreate() and uma_zdestroy calls into module loading
handler and the device attach handling.
- Change the related HARP netatm code to use UMA zone functions when
dealing with the zones that were formerly the ATM interface (hea, hfa)
storage pools.
- Have atm_physif_freenifs() now get passed an uma_zone_t so that we can
properly free the allocated NIF's back to their zone.
This should be the last commit to remove any code that makes use of the
netatm storage pool api. I will be removing the api code within the near
future.
Reviewed by: mdodd
|
|
|
|
|
|
|
|
|
|
| |
be a few bits left to clean from the HARP code in terms of what is using
the storage pools; once that's done, the memory management code can be
removed entirely.
This commit effectively changes the use of dynamic memory routines from
atm_allocate, atm_free, atm_release_pool to uma_zcreate, uma_zalloc,
uma_zfree, uma_zdestroy.
|
|
|
|
| |
Silence a warning.
|
|
|
|
| |
Requested by: hsu
|
| |
|
| |
|
|
|
|
|
| |
code is now storage pool free, so I believe this only leaves the uni
base not cleaned.
|
|
|
|
| |
to the appropriate UMA api calls.
|
| |
|
|
|
|
| |
allocations and frees use the UMA api.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a
socket buffer. The mutex in the receive buffer also protects the data
in struct socket.
o Determine the lock strategy for each members in struct socket.
o Lock down the following members:
- so_count
- so_options
- so_linger
- so_state
o Remove *_locked() socket APIs. Make the following socket APIs
touching the members above now require a locked socket:
- sodisconnect()
- soisconnected()
- soisconnecting()
- soisdisconnected()
- soisdisconnecting()
- sofree()
- soref()
- sorele()
- sorwakeup()
- sotryfree()
- sowakeup()
- sowwakeup()
Reviewed by: alfred
|
|
|
|
| |
the time to fix it properly at the moment.
|
|
|
|
| |
initialization routine.
|
| |
|
|
|
|
| |
- Move the Atm_pcb storage pool (atm_pcb_pool) to be an UMA zone.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Atm_connection items.
- Replaced the Atm_connvc storage pool with an uma_zone of Atm_connvc
items.
- Created void atm_cm_init(void *) and added it to the netatm init code.
I'm thinking that there will definetly be more ``subsystem'' init
functions to be added so I'll probably change these calls to be a for
loop through init routines (or something).
|
|
|
|
| |
- Remove atm_uma_ctor() as the M_ZERO will zero out the memory for us.
|
|
|
|
|
|
|
|
|
|
| |
Requested by: bde
Since locking sigio_lock is usually followed by calling pgsigio(),
move the declaration of sigio_lock and the definitions of SIGIO_*() to
sys/signalvar.h.
While I am here, sort include files alphabetically, where possible.
|
| |
|
|
|
|
|
|
| |
atm_stackq_zone).
- Change the related atm_allocate() and atm_free() calls into uma_zalloc()
and uma_zfree() calls.
|
|
|
|
|
|
|
|
| |
calls associated with the pool and the objects allocated out from the
pool.
- Insert atm_attributes_zone which is a uma_zone that is used just as the
atm_attributes_pool was (including the max objects value). Also, used
the appropriate zalloc and zfree's where necesary.
|
|
|
|
| |
to atm_free() is written.
|
|
|
|
|
| |
(with the appropriate set_max) rather than using the HARP storage pool
code.
|
| |
|
|
|
|
| |
Inspired by: jake@
|
| |
|
| |
|
|
|
|
| |
being used.
|
|
|
|
|
|
|
| |
- Nuke KM_ macros from port.h
This is a leadin step towards cleaning up this code as I wait for some
ATM cards and a ATM switch to arrive.
|
| |
|
| |
|
|
|
|
|
| |
- Add IDT bits to vendor/vendorapi/device enums.
- Add EISA to atm_bus enum.
|
| |
|
| |
|
|
|
|
|
|
|
| |
most cases NULL is passed, but in some cases such as network driver locks
(which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used.
Tested on: i386, alpha, sparc64
|
|
|
|
|
|
|
|
|
|
|
|
| |
general cleanup of the API. The entire API now consists of two functions
similar to the pre-KSE API. The suser() function takes a thread pointer
as its only argument. The td_ucred member of this thread must be valid
so the only valid thread pointers are curthread and a few kernel threads
such as thread0. The suser_cred() function takes a pointer to a struct
ucred as its first argument and an integer flag as its second argument.
The flag is currently only used for the PRISON_ROOT flag.
Discussed on: smp@
|
| |
|
| |
|
|
|
|
|
|
| |
Define the atm_dev_free() routine so that its OK to free stuff that is defined
as volatile. Note this doesn't FORCE the arguemnts to be volatile,
just says that it's not an error if it is..
|