|
|
| version 1.3, 2003/06/23 17:55:41 | version 1.4, 2004/05/19 22:52:58 |
|---|---|
| Line 32 | Line 32 |
| * | * |
| * @(#)subr_xxx.c 8.1 (Berkeley) 6/10/93 | * @(#)subr_xxx.c 8.1 (Berkeley) 6/10/93 |
| * $FreeBSD: src/sys/kern/subr_xxx.c,v 1.15.2.1 2001/02/26 04:23:16 jlemon Exp $ | * $FreeBSD: src/sys/kern/subr_xxx.c,v 1.15.2.1 2001/02/26 04:23:16 jlemon Exp $ |
| * $DragonFly: src/sys/kern/subr_xxx.c,v 1.2 2003/06/17 04:28:41 dillon Exp $ | * $DragonFly$ |
| */ | */ |
| /* | /* |
| Line 40 | Line 40 |
| */ | */ |
| #include <sys/param.h> | #include <sys/param.h> |
| #include <sys/systm.h> | #include <sys/systm.h> |
| #include <sys/buf.h> | |
| /* | /* |
| * Return error for operation not supported | * Return error for operation not supported |
| * on a specific object or file type. | * on a specific object or file type. |
| */ | */ |
| int | int |
| eopnotsupp() | eopnotsupp(void) |
| { | { |
| return (EOPNOTSUPP); | return (EOPNOTSUPP); |
| } | } |
| Line 57 eopnotsupp() | Line 57 eopnotsupp() |
| * on a specific object or file type. | * on a specific object or file type. |
| */ | */ |
| int | int |
| einval() | einval(void) |
| { | { |
| return (EINVAL); | return (EINVAL); |
| } | } |
| Line 67 einval() | Line 66 einval() |
| * Generic null operation, always returns success. | * Generic null operation, always returns success. |
| */ | */ |
| int | int |
| nullop() | nullop(void) |
| { | { |
| return (0); | return (0); |
| } | } |
| Line 81 nullop() | Line 79 nullop() |
| */ | */ |
| int | int |
| noopen(dev, flags, fmt, td) | noclone(dev_t dev) |
| dev_t dev; | |
| int flags; | |
| int fmt; | |
| struct thread *td; | |
| { | { |
| /* take no action */ | |
| return (0); /* allow the clone */ | |
| } | |
| int | |
| noopen(dev_t dev, int flags, int fmt, struct thread *td) | |
| { | |
| return (ENODEV); | return (ENODEV); |
| } | } |
| int | int |
| noclose(dev, flags, fmt, td) | noclose(dev_t dev, int flags, int fmt, struct thread *td) |
| dev_t dev; | |
| int flags; | |
| int fmt; | |
| struct thread *td; | |
| { | { |
| return (ENODEV); | return (ENODEV); |
| } | } |
| int | int |
| noread(dev, uio, ioflag) | noread(dev_t dev, struct uio *uio, int ioflag) |
| dev_t dev; | |
| struct uio *uio; | |
| int ioflag; | |
| { | { |
| return (ENODEV); | return (ENODEV); |
| } | } |
| int | int |
| nowrite(dev, uio, ioflag) | nowrite(dev_t dev, struct uio *uio, int ioflag) |
| dev_t dev; | |
| struct uio *uio; | |
| int ioflag; | |
| { | { |
| return (ENODEV); | return (ENODEV); |
| } | } |
| int | int |
| noioctl(dev, cmd, data, flags, td) | noioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct thread *td) |
| dev_t dev; | |
| u_long cmd; | |
| caddr_t data; | |
| int flags; | |
| struct thread *td; | |
| { | { |
| return (ENODEV); | return (ENODEV); |
| } | } |
| int | int |
| nokqfilter(dev, kn) | nokqfilter(dev_t dev, struct knote *kn) |
| dev_t dev; | |
| struct knote *kn; | |
| { | { |
| return (ENODEV); | return (ENODEV); |
| } | } |
| int | int |
| nommap(dev, offset, nprot) | nommap(dev_t dev, vm_offset_t offset, int nprot) |
| dev_t dev; | |
| vm_offset_t offset; | |
| int nprot; | |
| { | { |
| /* Don't return ENODEV. That would allow mapping address ENODEV! */ | /* Don't return ENODEV. That would allow mapping address ENODEV! */ |
| return (-1); | return (-1); |
| } | } |
| int | int |
| nodump(dev) | nopoll(dev_t dev, int events, d_thread_t *td) |
| dev_t dev; | |
| { | { |
| return(0); | |
| } | |
| void | |
| nostrategy(struct buf *bp) | |
| { | |
| bp->b_flags |= B_ERROR; | |
| bp->b_error = EOPNOTSUPP; | |
| biodone(bp); | |
| } | |
| int | |
| nopsize(dev_t dev) | |
| { | |
| return(0); | |
| } | |
| int | |
| nodump(dev_t dev, u_int count, u_int blkno, u_int secsize) | |
| { | |
| return (ENODEV); | return (ENODEV); |
| } | } |
| Line 173 nodump(dev) | Line 165 nodump(dev) |
| * minor number. | * minor number. |
| */ | */ |
| int | int |
| nullopen(dev, flags, fmt, td) | nullopen(dev_t dev, int flags, int fmt, struct thread *td) |
| dev_t dev; | |
| int flags; | |
| int fmt; | |
| struct thread *td; | |
| { | { |
| return (0); | return (0); |
| } | } |
| int | int |
| nullclose(dev, flags, fmt, td) | nullclose(dev_t dev, int flags, int fmt, struct thread *td) |
| dev_t dev; | |
| int flags; | |
| int fmt; | |
| struct thread *td; | |
| { | { |
| return (0); | return (0); |
| } | } |