1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2001, 2002 Cluster File Systems, Inc.
6 * This file is part of Lustre, http://www.lustre.org.
8 * Lustre is free software; you can redistribute it and/or
9 * modify it under the terms of version 2 of the GNU General Public
10 * License as published by the Free Software Foundation.
12 * Lustre is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Lustre; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef __LINUX_CLASS_OBD_H
24 #define __LINUX_CLASS_OBD_H
29 #include <linux/list.h>
32 #include <asm/segment.h>
33 #include <asm/uaccess.h>
34 #include <linux/types.h>
36 #include <linux/time.h>
38 #include <linux/lustre_lib.h>
39 #include <linux/lustre_idl.h>
40 #include <linux/obd.h>
44 * ======== OBD Device Declarations ===========
46 #define MAX_OBD_DEVICES 8
48 extern struct obd_device obd_dev[MAX_OBD_DEVICES];
50 #define OBD_ATTACHED 0x1
51 #define OBD_SET_UP 0x2
54 struct obd_device *oc_dev;
58 #include <linux/lustre_net.h>
63 struct dentry *dentry; /* file system obd device names */
64 __u8 _uuid[16]; /* uuid obd device names */
67 #include <linux/obd_ext2.h>
68 #include <linux/obd_filter.h>
69 #include <linux/lustre_mds.h>
70 #include <linux/lustre_net.h>
71 #include <linux/obd_snap.h>
72 #include <linux/obd_trace.h>
73 /* #include <linux/obd_fc.h> */
74 #include <linux/obd_raid1.h>
75 #include <linux/obd_ost.h>
76 #include <linux/obd_osc.h>
79 /* corresponds to one of the obd's */
81 struct obd_type *obd_type;
85 obd_devicename obd_fsname;
86 struct proc_dir_entry *obd_proc_entry;
88 struct obd_conn obd_multi_conn[MAX_MULTI];
89 unsigned int obd_gen_last_id;
90 unsigned long obd_gen_prealloc_quota;
91 struct list_head obd_gen_clients;
92 struct list_head obd_req_list;
93 wait_queue_head_t obd_req_waitq;
96 struct filter_obd filter;
98 struct raid1_obd raid1;
100 struct trace_obd trace;
106 extern struct proc_dir_entry *proc_lustre_register_obd_device(struct obd_device *obd);
107 extern void proc_lustre_release_obd_device(struct obd_device *obd);
108 extern void proc_lustre_remove_obd_entry(const char* name, struct obd_device *obd);
111 * ======== OBD Operations Declarations ===========
114 #define OBD_BRW_READ 1
115 #define OBD_BRW_WRITE 2
116 #define OBD_BRW_RWMASK OBD_BRW_READ | OBD_BRW_WRITE
117 #define OBD_BRW_CREATE 4
120 int (*o_iocontrol)(int cmd, struct obd_conn *, int len, void *karg,
122 int (*o_get_info)(struct obd_conn *, obd_count keylen, void *key,
123 obd_count *vallen, void **val);
124 int (*o_set_info)(struct obd_conn *, obd_count keylen, void *key,
125 obd_count vallen, void *val);
126 int (*o_attach)(struct obd_device *dev, obd_count len, void *data);
127 int (*o_detach)(struct obd_device *dev);
128 int (*o_setup) (struct obd_device *dev, obd_count len, void *data);
129 int (*o_cleanup)(struct obd_device *dev);
130 int (*o_connect)(struct obd_conn *conn);
131 int (*o_disconnect)(struct obd_conn *conn);
132 int (*o_statfs)(struct obd_conn *conn, struct statfs *statfs);
133 int (*o_preallocate)(struct obd_conn *, obd_count *req, obd_id *ids);
134 int (*o_create)(struct obd_conn *conn, struct obdo *oa);
135 int (*o_destroy)(struct obd_conn *conn, struct obdo *oa);
136 int (*o_setattr)(struct obd_conn *conn, struct obdo *oa);
137 int (*o_getattr)(struct obd_conn *conn, struct obdo *oa);
138 int (*o_read)(struct obd_conn *conn, struct obdo *oa, char *buf,
139 obd_size *count, obd_off offset);
140 int (*o_write)(struct obd_conn *conn, struct obdo *oa, char *buf,
141 obd_size *count, obd_off offset);
142 int (*o_brw)(int rw, struct obd_conn *conn, obd_count num_oa,
143 struct obdo **oa, obd_count *oa_bufs, struct page **buf,
144 obd_size *count, obd_off *offset, obd_flag *flags);
145 int (*o_punch)(struct obd_conn *conn, struct obdo *tgt, obd_size count,
147 int (*o_sync)(struct obd_conn *conn, struct obdo *tgt, obd_size count,
149 int (*o_migrate)(struct obd_conn *conn, struct obdo *dst,
150 struct obdo *src, obd_size count, obd_off offset);
151 int (*o_copy)(struct obd_conn *dstconn, struct obdo *dst,
152 struct obd_conn *srconn, struct obdo *src,
153 obd_size count, obd_off offset);
154 int (*o_iterate)(struct obd_conn *conn, int (*)(obd_id, obd_gr, void *),
155 obd_id *startid, obd_gr group, void *data);
156 int (*o_preprw)(int cmd, struct obd_conn *conn,
157 int objcount, struct obd_ioobj *obj,
158 int niocount, struct niobuf *nb,
160 int (*o_commitrw)(int cmd, struct obd_conn *conn,
161 int objcount, struct obd_ioobj *obj,
162 int niocount, struct niobuf *res);
167 struct obd_conn *conn;
172 static inline int obd_check_conn(struct obd_conn *conn)
174 struct obd_device *obd;
176 printk("obd_check_conn: NULL conn\n");
181 printk("obd_check_conn: NULL obd\n");
185 if (!obd->obd_flags & OBD_ATTACHED ) {
186 printk("obd_check_conn: obd %d not attached\n", obd->obd_minor);
190 if (!obd->obd_flags & OBD_SET_UP) {
191 printk("obd_check_conn: obd %d not setup\n", obd->obd_minor);
195 if (!obd->obd_type) {
196 printk("obd_check_conn: obd %d not typed\n", obd->obd_minor);
200 if (!obd->obd_type->typ_ops) {
201 printk("obd_check_conn: obd %d no operations\n", obd->obd_minor);
207 #define OBT(dev) dev->obd_type
208 #define OBP(dev,op) dev->obd_type->typ_ops->o_ ## op
210 #define OBD_CHECK_SETUP(conn) \
213 CERROR("NULL connection\n"); \
217 if (!((conn)->oc_dev)) { \
218 CERROR("NULL device\n"); \
222 if ( !((conn)->oc_dev->obd_flags & OBD_SET_UP) ) { \
223 CERROR("Device %d not setup\n", (conn)->oc_dev->obd_minor); \
228 #define OBD_CHECK_OP(conn,op) \
230 int rc = obd_check_conn(conn); \
232 printk("obd: error in operation: " #op "\n"); \
235 if (!OBP(conn->oc_dev,op)) { \
236 printk("obd_" #op ": dev %d no operation\n", \
237 conn->oc_dev->obd_minor); \
238 return -EOPNOTSUPP; \
242 static inline int obd_get_info(struct obd_conn *conn, obd_count keylen, void *key,
243 obd_count *vallen, void **val)
246 OBD_CHECK_SETUP(conn);
247 OBD_CHECK_OP(conn,get_info);
249 rc = OBP(conn->oc_dev, get_info)(conn, keylen, key, vallen, val);
254 static inline int obd_set_info(struct obd_conn *conn, obd_count keylen, void *key,
255 obd_count vallen, void *val)
258 OBD_CHECK_SETUP(conn);
259 OBD_CHECK_OP(conn,set_info);
261 rc = OBP(conn->oc_dev, set_info)(conn, keylen, key, vallen, val);
266 static inline int obd_setup(struct obd_device *obd, int datalen, void *data)
268 struct obd_conn conn;
272 OBD_CHECK_OP((&conn),setup);
274 rc = OBP(conn.oc_dev, setup)(obd, datalen, data);
279 static inline int obd_cleanup(struct obd_device *obd)
281 struct obd_conn conn;
285 OBD_CHECK_SETUP(&conn);
286 OBD_CHECK_OP((&conn),cleanup);
288 rc = OBP(conn.oc_dev, cleanup)(obd);
293 static inline int obd_create(struct obd_conn *conn, struct obdo *obdo)
296 OBD_CHECK_SETUP(conn);
297 OBD_CHECK_OP(conn,create);
299 rc = OBP(conn->oc_dev, create)(conn, obdo);
304 static inline int obd_destroy(struct obd_conn *conn, struct obdo *obdo)
307 OBD_CHECK_SETUP(conn);
308 OBD_CHECK_OP(conn,destroy);
310 rc = OBP(conn->oc_dev, destroy)(conn, obdo);
315 static inline int obd_getattr(struct obd_conn *conn, struct obdo *obdo)
318 OBD_CHECK_SETUP(conn);
319 OBD_CHECK_OP(conn,getattr);
321 rc = OBP(conn->oc_dev, getattr)(conn, obdo);
326 static inline int obd_setattr(struct obd_conn *conn, struct obdo *obdo)
329 OBD_CHECK_SETUP(conn);
330 OBD_CHECK_OP(conn,setattr);
332 rc = OBP(conn->oc_dev, setattr)(conn, obdo);
337 static inline int obd_connect(struct obd_conn *conn)
340 OBD_CHECK_SETUP(conn);
341 OBD_CHECK_OP(conn,connect);
343 rc = OBP(conn->oc_dev, connect)(conn);
348 static inline int obd_disconnect(struct obd_conn *conn)
351 OBD_CHECK_SETUP(conn);
352 OBD_CHECK_OP(conn,disconnect);
354 rc = OBP(conn->oc_dev, disconnect)(conn);
359 static inline int obd_statfs(struct obd_conn *conn, struct statfs *buf)
362 OBD_CHECK_SETUP(conn);
363 OBD_CHECK_OP(conn,statfs);
365 rc = OBP(conn->oc_dev, statfs)(conn, buf);
370 static inline int obd_punch(struct obd_conn *conn, struct obdo *tgt, obd_size count, obd_off offset)
373 OBD_CHECK_SETUP(conn);
374 OBD_CHECK_OP(conn,punch);
376 rc = OBP(conn->oc_dev, punch)(conn, tgt, count, offset);
381 static inline int obd_brw(int rw, struct obd_conn *conn, obd_count num_oa,
382 struct obdo **oa, obd_count *oa_bufs, struct page **buf,
383 obd_size *count, obd_off *offset, obd_flag *flags)
386 OBD_CHECK_SETUP(conn);
387 OBD_CHECK_OP(conn,brw);
389 rc = OBP(conn->oc_dev, brw)(rw, conn, num_oa, oa, oa_bufs, buf,
390 count, offset, flags);
395 static inline int obd_preprw(int cmd, struct obd_conn *conn,
396 int objcount, struct obd_ioobj *obj,
397 int niocount, struct niobuf *nb,
401 OBD_CHECK_SETUP(conn);
402 OBD_CHECK_OP(conn, preprw);
404 rc = OBP(conn->oc_dev, preprw)(cmd, conn, objcount, obj, niocount, nb, res);
409 static inline int obd_commitrw(int cmd, struct obd_conn *conn,
410 int objcount, struct obd_ioobj *obj,
411 int niocount, struct niobuf *res)
414 OBD_CHECK_SETUP(conn);
415 OBD_CHECK_OP(conn, commitrw);
417 rc = OBP(conn->oc_dev, commitrw)(cmd, conn, objcount, obj, niocount, res);
426 * ======== OBD Metadata Support ===========
429 extern int obd_init_obdo_cache(void);
430 extern void obd_cleanup_obdo_cache(void);
433 static inline int obdo_has_inline(struct obdo *obdo)
435 return (obdo->o_valid & OBD_MD_FLINLINE &&
436 obdo->o_obdflags & OBD_FL_INLINEDATA);
439 static inline int obdo_has_obdmd(struct obdo *obdo)
441 return (obdo->o_valid & OBD_MD_FLOBDMD &&
442 obdo->o_obdflags & OBD_FL_OBDMDEXISTS);
446 /* support routines */
447 extern kmem_cache_t *obdo_cachep;
449 static __inline__ struct obdo *obdo_alloc(void)
451 struct obdo *oa = NULL;
453 oa = kmem_cache_alloc(obdo_cachep, SLAB_KERNEL);
454 memset(oa, 0, sizeof (*oa));
459 static __inline__ void obdo_free(struct obdo *oa)
463 kmem_cache_free(obdo_cachep, oa);
466 static __inline__ struct obdo *obdo_fromid(struct obd_conn *conn, obd_id id,
467 obd_mode mode, obd_flag valid)
476 return ERR_PTR(-ENOMEM);
482 if ((err = OBP(conn->oc_dev, getattr)(conn, oa))) {
491 static inline void obdo_from_iattr(struct obdo *oa, struct iattr *attr)
493 unsigned int ia_valid = attr->ia_valid;
495 if (ia_valid & ATTR_ATIME) {
496 oa->o_atime = attr->ia_atime;
497 oa->o_valid |= OBD_MD_FLATIME;
499 if (ia_valid & ATTR_MTIME) {
500 oa->o_mtime = attr->ia_mtime;
501 oa->o_valid |= OBD_MD_FLMTIME;
503 if (ia_valid & ATTR_CTIME) {
504 oa->o_ctime = attr->ia_ctime;
505 oa->o_valid |= OBD_MD_FLCTIME;
507 if (ia_valid & ATTR_SIZE) {
508 oa->o_size = attr->ia_size;
509 oa->o_valid |= OBD_MD_FLSIZE;
511 if (ia_valid & ATTR_MODE) {
512 oa->o_mode = attr->ia_mode;
513 oa->o_valid |= OBD_MD_FLMODE;
514 if (!in_group_p(oa->o_gid) && !capable(CAP_FSETID))
515 oa->o_mode &= ~S_ISGID;
517 if (ia_valid & ATTR_UID)
519 oa->o_uid = attr->ia_uid;
520 oa->o_valid |= OBD_MD_FLUID;
522 if (ia_valid & ATTR_GID) {
523 oa->o_gid = attr->ia_gid;
524 oa->o_valid |= OBD_MD_FLGID;
529 static inline void iattr_from_obdo(struct iattr *attr, struct obdo *oa)
531 unsigned int ia_valid = oa->o_valid;
533 memset(attr, 0, sizeof(*attr));
534 if (ia_valid & OBD_MD_FLATIME) {
535 attr->ia_atime = oa->o_atime;
536 attr->ia_valid |= ATTR_ATIME;
538 if (ia_valid & OBD_MD_FLMTIME) {
539 attr->ia_mtime = oa->o_mtime;
540 attr->ia_valid |= ATTR_MTIME;
542 if (ia_valid & OBD_MD_FLCTIME) {
543 attr->ia_ctime = oa->o_ctime;
544 attr->ia_valid |= ATTR_CTIME;
546 if (ia_valid & OBD_MD_FLSIZE) {
547 attr->ia_size = oa->o_size;
548 attr->ia_valid |= ATTR_SIZE;
550 if (ia_valid & OBD_MD_FLMODE) {
551 attr->ia_mode = oa->o_mode;
552 attr->ia_valid |= ATTR_MODE;
553 if (!in_group_p(oa->o_gid) && !capable(CAP_FSETID))
554 attr->ia_mode &= ~S_ISGID;
556 if (ia_valid & OBD_MD_FLUID)
558 attr->ia_uid = oa->o_uid;
559 attr->ia_valid |= ATTR_UID;
561 if (ia_valid & OBD_MD_FLGID) {
562 attr->ia_gid = oa->o_gid;
563 attr->ia_valid |= ATTR_GID;
568 /* WARNING: the file systems must take care not to tinker with
569 attributes they don't manage (such as blocks). */
571 static __inline__ void obdo_from_inode(struct obdo *dst, struct inode *src)
573 if ( dst->o_valid & OBD_MD_FLID )
574 dst->o_id = src->i_ino;
575 if ( dst->o_valid & OBD_MD_FLATIME )
576 dst->o_atime = src->i_atime;
577 if ( dst->o_valid & OBD_MD_FLMTIME )
578 dst->o_mtime = src->i_mtime;
579 if ( dst->o_valid & OBD_MD_FLCTIME )
580 dst->o_ctime = src->i_ctime;
581 if ( dst->o_valid & OBD_MD_FLSIZE )
582 dst->o_size = src->i_size;
583 if ( dst->o_valid & OBD_MD_FLBLOCKS ) /* allocation of space */
584 dst->o_blocks = src->i_blocks;
585 if ( dst->o_valid & OBD_MD_FLBLKSZ )
586 dst->o_blksize = src->i_blksize;
587 if ( dst->o_valid & OBD_MD_FLMODE )
588 dst->o_mode = src->i_mode;
589 if ( dst->o_valid & OBD_MD_FLUID )
590 dst->o_uid = src->i_uid;
591 if ( dst->o_valid & OBD_MD_FLGID )
592 dst->o_gid = src->i_gid;
593 if ( dst->o_valid & OBD_MD_FLFLAGS )
594 dst->o_flags = src->i_flags;
595 if ( dst->o_valid & OBD_MD_FLNLINK )
596 dst->o_nlink = src->i_nlink;
597 if ( dst->o_valid & OBD_MD_FLGENER )
598 dst->o_generation = src->i_generation;
601 static __inline__ void obdo_to_inode(struct inode *dst, struct obdo *src)
604 if ( src->o_valid & OBD_MD_FLID )
605 dst->i_ino = src->o_id;
606 if ( src->o_valid & OBD_MD_FLATIME )
607 dst->i_atime = src->o_atime;
608 if ( src->o_valid & OBD_MD_FLMTIME )
609 dst->i_mtime = src->o_mtime;
610 if ( src->o_valid & OBD_MD_FLCTIME )
611 dst->i_ctime = src->o_ctime;
612 if ( src->o_valid & OBD_MD_FLSIZE )
613 dst->i_size = src->o_size;
614 if ( src->o_valid & OBD_MD_FLBLOCKS ) /* allocation of space */
615 dst->i_blocks = src->o_blocks;
616 if ( src->o_valid & OBD_MD_FLBLKSZ )
617 dst->i_blksize = src->o_blksize;
618 if ( src->o_valid & OBD_MD_FLMODE )
619 dst->i_mode = src->o_mode;
620 if ( src->o_valid & OBD_MD_FLUID )
621 dst->i_uid = src->o_uid;
622 if ( src->o_valid & OBD_MD_FLGID )
623 dst->i_gid = src->o_gid;
624 if ( src->o_valid & OBD_MD_FLFLAGS )
625 dst->i_flags = src->o_flags;
626 if ( src->o_valid & OBD_MD_FLNLINK )
627 dst->i_nlink = src->o_nlink;
628 if ( src->o_valid & OBD_MD_FLGENER )
629 dst->i_generation = src->o_generation;
634 static __inline__ void obdo_cpy_md(struct obdo *dst, struct obdo *src)
637 CDEBUG(D_INODE, "src obdo %Ld valid 0x%x, dst obdo %Ld\n",
638 src->o_id, src->o_valid, dst->o_id);
640 if ( src->o_valid & OBD_MD_FLATIME )
641 dst->o_atime = src->o_atime;
642 if ( src->o_valid & OBD_MD_FLMTIME )
643 dst->o_mtime = src->o_mtime;
644 if ( src->o_valid & OBD_MD_FLCTIME )
645 dst->o_ctime = src->o_ctime;
646 if ( src->o_valid & OBD_MD_FLSIZE )
647 dst->o_size = src->o_size;
648 if ( src->o_valid & OBD_MD_FLBLOCKS ) /* allocation of space */
649 dst->o_blocks = src->o_blocks;
650 if ( src->o_valid & OBD_MD_FLBLKSZ )
651 dst->o_blksize = src->o_blksize;
652 if ( src->o_valid & OBD_MD_FLMODE )
653 dst->o_mode = src->o_mode;
654 if ( src->o_valid & OBD_MD_FLUID )
655 dst->o_uid = src->o_uid;
656 if ( src->o_valid & OBD_MD_FLGID )
657 dst->o_gid = src->o_gid;
658 if ( src->o_valid & OBD_MD_FLFLAGS )
659 dst->o_flags = src->o_flags;
661 if ( src->o_valid & OBD_MD_FLOBDFLG )
662 dst->o_obdflags = src->o_obdflags;
664 if ( src->o_valid & OBD_MD_FLNLINK )
665 dst->o_nlink = src->o_nlink;
666 if ( src->o_valid & OBD_MD_FLGENER )
667 dst->o_generation = src->o_generation;
668 if ( src->o_valid & OBD_MD_FLINLINE &&
669 src->o_obdflags & OBD_FL_INLINEDATA) {
670 memcpy(dst->o_inline, src->o_inline, sizeof(src->o_inline));
671 dst->o_obdflags |= OBD_FL_INLINEDATA;
673 if ( src->o_valid & OBD_MD_FLOBDMD &&
674 src->o_obdflags & OBD_FL_OBDMDEXISTS) {
675 memcpy(dst->o_obdmd, src->o_obdmd, sizeof(src->o_obdmd));
676 dst->o_obdflags |= OBD_FL_OBDMDEXISTS;
679 dst->o_valid |= src->o_valid;
683 /* returns FALSE if comparison (by flags) is same, TRUE if changed */
684 static __inline__ int obdo_cmp_md(struct obdo *dst, struct obdo *src,
689 if ( compare & OBD_MD_FLATIME )
690 res = (res || (dst->o_atime != src->o_atime));
691 if ( compare & OBD_MD_FLMTIME )
692 res = (res || (dst->o_mtime != src->o_mtime));
693 if ( compare & OBD_MD_FLCTIME )
694 res = (res || (dst->o_ctime != src->o_ctime));
695 if ( compare & OBD_MD_FLSIZE )
696 res = (res || (dst->o_size != src->o_size));
697 if ( compare & OBD_MD_FLBLOCKS ) /* allocation of space */
698 res = (res || (dst->o_blocks != src->o_blocks));
699 if ( compare & OBD_MD_FLBLKSZ )
700 res = (res || (dst->o_blksize != src->o_blksize));
701 if ( compare & OBD_MD_FLMODE )
702 res = (res || (dst->o_mode != src->o_mode));
703 if ( compare & OBD_MD_FLUID )
704 res = (res || (dst->o_uid != src->o_uid));
705 if ( compare & OBD_MD_FLGID )
706 res = (res || (dst->o_gid != src->o_gid));
707 if ( compare & OBD_MD_FLFLAGS )
708 res = (res || (dst->o_flags != src->o_flags));
709 if ( compare & OBD_MD_FLNLINK )
710 res = (res || (dst->o_nlink != src->o_nlink));
711 if ( compare & OBD_MD_FLGENER )
712 res = (res || (dst->o_generation != src->o_generation));
713 /* XXX Don't know if thses should be included here - wasn't previously
714 if ( compare & OBD_MD_FLINLINE )
715 res = (res || memcmp(dst->o_inline, src->o_inline));
716 if ( compare & OBD_MD_FLOBDMD )
717 res = (res || memcmp(dst->o_obdmd, src->o_obdmd));
724 int obd_register_type(struct obd_ops *ops, char *nm);
725 int obd_unregister_type(char *nm);
728 struct list_head cli_chain;
729 struct obd_device *cli_obd;
731 unsigned long cli_prealloc_quota;
732 struct list_head cli_prealloc_inodes;
736 struct obd_prealloc_inode {
737 struct list_head obd_prealloc_chain;
741 /* generic operations shared by various OBD types */
742 int gen_multi_setup(struct obd_device *obddev, uint32_t len, void *data);
743 int gen_multi_cleanup(struct obd_device *obddev);
744 int gen_multi_attach(struct obd_device *obddev, uint32_t len, void *data);
745 int gen_multi_detach(struct obd_device *obddev);
746 int gen_connect (struct obd_conn *conn);
747 int gen_disconnect(struct obd_conn *conn);
748 struct obd_client *gen_client(const struct obd_conn *);
749 int gen_cleanup(struct obd_device *obddev);
750 int gen_copy_data(struct obd_conn *dst_conn, struct obdo *dst,
751 struct obd_conn *src_conn, struct obdo *src,
752 obd_size count, obd_off offset);
757 extern void obd_sysctl_init (void);
758 extern void obd_sysctl_clean (void);
760 #endif /* __LINUX_CLASS_OBD_H */