| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
completely dynamic sbuf.
Obtained from: Varnish
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
- In gctl_get_geom(), don't issue error when we were not
provided with an parameter, like gctl_get_provider() did.
Reviewed by: pjd
|
|
|
|
|
|
|
|
|
|
|
| |
error on the request. Add a wrapper, gctl_set_param_err(), that
sets the error on the request from the error returned by
gctl_set_param() and update current callers of gctl_set_param()
to call gctl_set_param_err() instead.
This makes gctl_set_param() much more usable in situations where
the caller knows better what to do with certain (apparent) error
conditions and setting an error on the request is not one of the
things that need to be done.
|
|
|
|
|
| |
o Don't set the error twice when the named class does not exist.
It causes ioctl(2) to return with error EEXIST.
|
| |
|
|
|
|
|
|
|
| |
process context.
Approved by: phk
MFC after: 3 days
|
|
|
|
|
| |
transfers. The necessary context for calling copyin() isn't available
anyway and automatic code-validation chokes on this.
|
| |
|
|
|
|
| |
Bump __FreeBSD_version accordingly.
|
|
|
|
|
|
|
|
| |
Introduce d_version field in struct cdevsw, this must always be
initialized to D_VERSION.
Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing
four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
provide no methods does not make any sense, and is not used by any
driver.
It is a pretty hard to come up with even a theoretical concept of
a device driver which would always fail open and close with ENODEV.
Change the defaults to be nullopen() and nullclose() which simply
does nothing.
Remove explicit initializations to these from the drivers which
already used them.
|
|
|
|
| |
Always wait for things to settle before returning.
|
|
|
|
| |
Approved by: phk
|
|
|
|
| |
located.
|
|
|
|
| |
Noticed by: tmm
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
hinge on the "verb" parameter which the class gets to interpret as
it sees fit.
Move the entire request into the kernel and move changed parameters
back when done.
|
| |
|
| |
|
| |
|
|
|
|
| |
Remember to free the buffer we got from g_read_data().
|
|
|
|
| |
right length.
|
| |
|
| |
|
|
|
|
| |
more trouble than it is worth.
|
| |
|
|
|
|
| |
now.
|
|
|
|
|
|
|
|
|
| |
parts of it.
[*] I've been asked what "OAM" means: It's an acronym used in the
telecom industry, "Operations And Maintenance", and there it covers
anything from a single unlabeled led on the frontpanel the the full
nightmare of CMIP for SS7.
|
|
|
|
|
|
|
| |
Use prefix gctl_ systematically.
Add flag with access perms for each argument.
Add ro/rw versions of argument building functions.
General cleanup.
|
|
|
|
| |
instead, it will never see a disk-I/O transaction, so this is a lot simpler.
|
| |
|
|
|
|
|
| |
%j in printfs, so put a newsted include in <sys/systm.h> where the printf
prototype lives and save everybody else the trouble.
|
|
|
|
| |
Approved by: trb
|
|
|
|
| |
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
|
|
|
|
| |
Sponsored by: DARPA & NAI Labs
|
|
|
|
|
|
|
|
|
|
|
| |
don't take the detour over the I/O path to discover them using getattr(),
we can just pick them out directly.
Do note though, that for now they are only valid after the first open
of the underlying disk device due compatibility with the old disk_create()
API. This will change in the future so they will always be valid.
Sponsored by: DARPA & NAI Labs.
|
|
|
|
| |
Sponsored by: DARPA & NAI Labs.
|
|
|
|
|
|
| |
and configure an instance of a class on a give provider.
Sponsored by: DARPA & NAI Labs
|
|
Sponsored by: DARPA & NAI Labs.
|