History log of /openbsd-src/sys/kern/subr_extent.c (Results 1 – 25 of 65)
Revision Date Author Comments
# baaa8a4a 19-Jan-2024 kettenis <kettenis@openbsd.org>

Implement extent_alloc_region_with_descr(9) which is the equivalent of
extent_alloc_region(9) that uses a pre-allocated region descriptor.

ok patrick@


# 2b46a8cb 05-Dec-2022 deraadt <deraadt@openbsd.org>

zap a pile of dangling tabs


# 1bae1a4b 11-Jan-2020 mpi <mpi@openbsd.org>

Convert infinite sleeps to tsleep_nsec(9).

ok bluhm@


# e2edd5f0 11-Sep-2019 kettenis <kettenis@openbsd.org>

Make it possible to free overlapping regions (effectively allowing
freeing parts of regions that are already free) when the EX_CONFLICTOK
flag is passed to extent_free.

ok jmatthew@


# 291a2b7b 28-Aug-2019 kettenis <kettenis@openbsd.org>

If the EX_CONFLICTOK flag is given, allow operations that (partly)
free space that is already free.

ok patrick@


# 5294d612 14-Nov-2018 mpi <mpi@openbsd.org>

Revert previous, it breaks regress.


# fa68864f 14-Nov-2018 mpi <mpi@openbsd.org>

Userland malloc(3) & free(3) take only one argument.


# 1378bae2 15-Sep-2016 dlg <dlg@openbsd.org>

all pools have their ipl set via pool_setipl, so fold it into pool_init.

the ioff argument to pool_init() is unused and has been for many
years, so this replaces it with an ipl argument. because the

all pools have their ipl set via pool_setipl, so fold it into pool_init.

the ioff argument to pool_init() is unused and has been for many
years, so this replaces it with an ipl argument. because the ipl
will be set on init we no longer need pool_setipl.

most of these changes have been done with coccinelle using the spatch
below. cocci sucks at formatting code though, so i fixed that by hand.

the manpage and subr_pool.c bits i did myself.

ok tedu@ jmatthew@

@ipl@
expression pp;
expression ipl;
expression s, a, o, f, m, p;
@@
-pool_init(pp, s, a, o, f, m, p);
-pool_setipl(pp, ipl);
+pool_init(pp, s, a, ipl, f, m, p);

show more ...


# bae2bd50 28-Aug-2015 deraadt <deraadt@openbsd.org>

fairly simple sizes for free(); ok tedu


# 21dab745 14-Mar-2015 jsg <jsg@openbsd.org>

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


# 5ff140d2 03-Nov-2014 deraadt <deraadt@openbsd.org>

pass size argument to free()
ok doug tedu


# 7f58a11f 14-Sep-2014 jsg <jsg@openbsd.org>

remove uneeded proc.h includes
ok mpi@ kspillner@


# abcbcc4d 13-Sep-2014 doug <doug@openbsd.org>

Replace all queue *_END macro calls except CIRCLEQ_END with NULL.

CIRCLEQ_* is deprecated and not called in the tree. The other queue types
have *_END macros which were added for symmetry with CIRC

Replace all queue *_END macro calls except CIRCLEQ_END with NULL.

CIRCLEQ_* is deprecated and not called in the tree. The other queue types
have *_END macros which were added for symmetry with CIRCLEQ_END. They are
defined as NULL. There's no reason to keep the other *_END macro calls.

ok millert@

show more ...


# a98d2d9e 17-Aug-2014 dlg <dlg@openbsd.org>

i broke the userland shim used for the extent regress test when i
made it so struct pool was only visible to _KERNEL. tedu broke it
too when he added the size argument to the kernel free
functions.

i broke the userland shim used for the extent regress test when i
made it so struct pool was only visible to _KERNEL. tedu broke it
too when he added the size argument to the kernel free
functions.

this fixes both issues. the main change is to provide a local version of
struct pool with just the bit (pr_size) needed for extent to run.

if extents take advantage of more malloc/pool features (eg, {M,PR}_ZERO
then this will need to be updated again.

found by and based on a diff from Theo Buehler
ok mpi@

show more ...


# 9e8577e7 12-Jul-2014 tedu <tedu@openbsd.org>

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.


# a25e53a4 21-Jan-2014 kettenis <kettenis@openbsd.org>

Add extent_alloc_subregion_with_descr(9) which allows the caller to provide
a region descriptor such that the extent manager doesn't need to call
malloc(9).

ok miod@, deraadt@


# 91ba896d 21-Jan-2014 tedu <tedu@openbsd.org>

bzero -> memset


# 649ba788 08-Aug-2013 syl <syl@openbsd.org>

Uncomment kprintf format attributes for sys/kern

tested on vax (gcc3) ok miod@


# 8cbc5af5 17-Feb-2013 miod <miod@openbsd.org>

Comment out recently added __attribute__((__format__(__kprintf__))) annotations
in MI code; gcc 2.95 does not accept such annotation for function pointer
declarations, only function prototypes.
To be

Comment out recently added __attribute__((__format__(__kprintf__))) annotations
in MI code; gcc 2.95 does not accept such annotation for function pointer
declarations, only function prototypes.
To be uncommented once gcc 2.95 bites the dust.

show more ...


# 5ad789c5 09-Feb-2013 miod <miod@openbsd.org>

Add explicit __attribute__ ((__format__(__kprintf__)))) to the functions and
function pointer arguments which are {used as,} wrappers around the kernel
printf function.
No functional change.


# 4bd93c05 05-Jan-2011 fgsch <fgsch@openbsd.org>

use __func__ where possible. shaves 4k and makes indentation much better.
kettenis@ ok


# c21a182b 03-Jul-2010 tedu <tedu@openbsd.org>

explicitly specify flags to malloc and pool_get instead of relying on 0.
This is more clear, and as thib pointed out, the default in softraid was
wrong. ok thib.


# add88c09 20-Jun-2010 phessler <phessler@openbsd.org>

Add some missing includes, so we do not have implicit function
declarations.

OK miod@, millert@


# a3c911ba 14-Jan-2010 schwarze <schwarze@openbsd.org>

fix typos in comments, no code changes;
from Brad Tilley <brad at 16systems dot com>;
ok oga@


# 19f4d79c 13-Oct-2009 miod <miod@openbsd.org>

Make sure we do not loop when allocating an extent region with EX_CONFLICTOK
and the whole extent is used; the current code computations would wrap.
Found the hard way by jsg@, fix discuss with kette

Make sure we do not loop when allocating an extent region with EX_CONFLICTOK
and the whole extent is used; the current code computations would wrap.
Found the hard way by jsg@, fix discuss with kettenis@, and you get a
regress test for free (which will spin if you compile it again an old
subr_extent.c)

show more ...


123