OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [include/] [linux/] [auto_fs.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/* -*- linux-c -*- ------------------------------------------------------- *
2
 *
3
 * linux/include/linux/auto_fs.h
4
 *
5
 *   Copyright 1997 Transmeta Corporation - All Rights Reserved
6
 *
7
 * This file is part of the Linux kernel and is made available under
8
 * the terms of the GNU General Public License, version 2, or at your
9
 * option, any later version, incorporated herein by reference.
10
 *
11
 * ----------------------------------------------------------------------- */
12
 
13
 
14
#ifndef _LINUX_AUTO_FS_H
15
#define _LINUX_AUTO_FS_H
16
 
17
#include <linux/version.h>
18
#include <linux/fs.h>
19
#include <linux/limits.h>
20
#include <linux/ioctl.h>
21
#include <asm/types.h>
22
 
23
#define AUTOFS_PROTO_VERSION 3
24
 
25
enum autofs_packet_type {
26
        autofs_ptype_missing,   /* Missing entry (mount request) */
27
        autofs_ptype_expire,    /* Expire entry (umount request) */
28
};
29
 
30
struct autofs_packet_hdr {
31
        int proto_version;            /* Protocol version */
32
        enum autofs_packet_type type; /* Type of packet */
33
};
34
 
35
struct autofs_packet_missing {
36
        struct autofs_packet_hdr hdr;
37
        unsigned long wait_queue_token;
38
        int len;
39
        char name[NAME_MAX+1];
40
};
41
 
42
struct autofs_packet_expire {
43
        struct autofs_packet_hdr hdr;
44
        int len;
45
        char name[NAME_MAX+1];
46
};
47
 
48
#define AUTOFS_IOC_READY      _IO(0x93,0x60)
49
#define AUTOFS_IOC_FAIL       _IO(0x93,0x61)
50
#define AUTOFS_IOC_CATATONIC  _IO(0x93,0x62)
51
#define AUTOFS_IOC_PROTOVER   _IOR(0x93,0x63,int)
52
#define AUTOFS_IOC_SETTIMEOUT _IOWR(0x93,0x64,unsigned long)
53
#define AUTOFS_IOC_EXPIRE     _IOR(0x93,0x65,struct autofs_packet_expire)
54
 
55
#ifdef __KERNEL__
56
 
57
/* Init function */
58
int init_autofs_fs(void);
59
 
60
#endif /* __KERNEL__ */
61
 
62
#endif /* _LINUX_AUTO_FS_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.