Remove the puc-specific hacks. The puc(4) driver now properly uses

the rman(9) interface.
This commit is contained in:
Marcel Moolenaar 2006-04-28 21:23:09 +00:00
parent 64220a7e28
commit 8f405ed335
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158125
2 changed files with 0 additions and 33 deletions

View File

@ -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)
{

View File

@ -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_ */