Remove the puc-specific hacks. The puc(4) driver now properly uses
the rman(9) interface.
This commit is contained in:
parent
193a6144b9
commit
b2cf5a1a9a
@ -120,31 +120,6 @@ int_alloc_resource(int malloc_flag)
|
||||
return (r);
|
||||
}
|
||||
|
||||
/*
|
||||
* XXX: puc.c is a big hack.
|
||||
* XXX: it should be rewritten to act like a bridge and offer
|
||||
* XXX: its own resource manager.
|
||||
* XXX: until somebody has time, help it out with these two functions
|
||||
*/
|
||||
|
||||
struct resource *
|
||||
rman_secret_puc_alloc_resource(int malloc_flag)
|
||||
{
|
||||
struct resource_i *r;
|
||||
|
||||
r = int_alloc_resource(malloc_flag);
|
||||
if (r)
|
||||
return (&r->r_r);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
void
|
||||
rman_secret_puc_free_resource(struct resource *r)
|
||||
{
|
||||
|
||||
free(r->__r_i, M_RMAN);
|
||||
}
|
||||
|
||||
int
|
||||
rman_init(struct rman *rm)
|
||||
{
|
||||
|
@ -149,14 +149,6 @@ void rman_set_virtual(struct resource *_r, void *_v);
|
||||
|
||||
extern struct rman_head rman_head;
|
||||
|
||||
/*
|
||||
* XXX: puc.c is a big hack.
|
||||
* XXX: it should be rewritten to act like a bridge and offer
|
||||
* XXX: its own resource manager.
|
||||
* XXX: until somebody has time, help it out with these two functions
|
||||
*/
|
||||
struct resource *rman_secret_puc_alloc_resource(int malloc_flag);
|
||||
void rman_secret_puc_free_resource(struct resource *r);
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_RMAN_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user