diff options
author | Roland McGrath <roland@gnu.org> | 2000-02-04 03:21:18 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2000-02-04 03:21:18 +0000 |
commit | 9fd51e9b0ad33a89a83fdbbb66bd20d85f7893fb (patch) | |
tree | 8845b79f170028cb4380045c50277bbf075b5b7d /pfinet/linux-src/include/linux/smb_fs_sb.h | |
download | hurd-9fd51e9b0ad33a89a83fdbbb66bd20d85f7893fb.tar.gz hurd-9fd51e9b0ad33a89a83fdbbb66bd20d85f7893fb.tar.bz2 hurd-9fd51e9b0ad33a89a83fdbbb66bd20d85f7893fb.zip |
Import of Linux 2.2.12 subset (ipv4 stack and related)
Diffstat (limited to 'pfinet/linux-src/include/linux/smb_fs_sb.h')
-rw-r--r-- | pfinet/linux-src/include/linux/smb_fs_sb.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pfinet/linux-src/include/linux/smb_fs_sb.h b/pfinet/linux-src/include/linux/smb_fs_sb.h new file mode 100644 index 00000000..cedbb5ab --- /dev/null +++ b/pfinet/linux-src/include/linux/smb_fs_sb.h @@ -0,0 +1,50 @@ +/* + * smb_fs_sb.h + * + * Copyright (C) 1995 by Paal-Kr. Engstad and Volker Lendecke + * Copyright (C) 1997 by Volker Lendecke + * + */ + +#ifndef _SMB_FS_SB +#define _SMB_FS_SB + +#ifdef __KERNEL__ + +#include <linux/types.h> +#include <linux/smb.h> + +/* Get the server for the specified dentry */ +#define server_from_dentry(dentry) &dentry->d_sb->u.smbfs_sb +#define SB_of(server) ((struct super_block *) ((char *)(server) - \ + (unsigned long)(&((struct super_block *)0)->u.smbfs_sb))) + +struct smb_sb_info { + enum smb_conn_state state; + struct file * sock_file; + + struct smb_mount_data *mnt; + unsigned char *temp_buf; + + /* Connections are counted. Each time a new socket arrives, + * generation is incremented. + */ + unsigned int generation; + pid_t conn_pid; + struct smb_conn_opt opt; + + struct semaphore sem; + struct wait_queue * wait; + + __u32 packet_size; + unsigned char * packet; + unsigned short rcls; /* The error codes we received */ + unsigned short err; + + /* We use our on data_ready callback, but need the original one */ + void *data_ready; +}; + +#endif /* __KERNEL__ */ + +#endif |