[Balls-cvs-act] CVS: linux/include/linux balls.h,1.6,1.7
Status: Pre-Alpha
Brought to you by:
quinnharris
|
From: Quinn H. <qui...@us...> - 2001-10-24 23:36:39
|
Update of /cvsroot/balls/linux/include/linux
In directory usw-pr-cvs1:/tmp/cvs-serv29666/include/linux
Modified Files:
balls.h
Log Message:
Index: balls.h
===================================================================
RCS file: /cvsroot/balls/linux/include/linux/balls.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** balls.h 2001/10/20 06:13:50 1.6
--- balls.h 2001/10/24 23:36:37 1.7
***************
*** 1,16 ****
! /* Assign an ID to each VFS operation */
! #define VFS_CREATE 0x00
! #define VFS_MKNOD 0x01
! #define VFS_MKDIR 0x02
! #define VFS_RMDIR 0x03
! #define VFS_UNLINK 0x04
! #define VFS_SYMLINK 0x05
! #define VFS_LINK 0x06
! #define VFS_RENAME 0x07
! #define VFS_COPY 0x08
! /* Nothing higher than 0x0F */
struct task_struct *balls_daemon;
void (*__queue_put)(struct dentry *, struct dentry *);
static inline void queue_put(struct dentry *src,
--- 1,33 ----
! #include "balls_bits.h"
struct task_struct *balls_daemon;
+
+ /* The following is used for debuging.
+ * This allows puting the code for the function in a module.
+ * That code will later be moved directly into the kernel
+ */
void (*__queue_put)(struct dentry *, struct dentry *);
+ void (*__balls_create)(struct inode *, struct dentry *);
+ void (*__balls_trunc)(struct inode *, struct dentry *);
+ void (*__balls_close)(struct file *filp);
+
+ static inline void balls_vfs_create(struct inode *dir, struct dentry *dentry)
+ {
+ if (balls_daemon)
+ __balls_create(dir, dentry);
+ }
+
+ static inline void balls_open_namei_trunc(struct inode *dir, struct dentry *dentry)
+ {
+ if (balls_daemon)
+ __balls_trunc(dir, dentry);
+ }
+
+ static inline void balls_filp_close(struct file *filp)
+ {
+ if (balls_daemon)
+ __balls_close(filp);
+ }
+
static inline void queue_put(struct dentry *src,
***************
*** 27,32 ****
{
/* For debuging only, remove later */
! if (balls_daemon)
! {
/* Test if this directory is not excuded !!! */
queue_put(0xC0000000, dentry, op);
--- 44,48 ----
{
/* For debuging only, remove later */
! if (balls_daemon) {
/* Test if this directory is not excuded !!! */
queue_put(0xC0000000, dentry, op);
***************
*** 40,45 ****
{
/* For debuging only, remove later */
! if (balls_daemon)
! {
/* Test if this directory is not excuded !!! */
queue_put(source, dentry, op);
--- 56,60 ----
{
/* For debuging only, remove later */
! if (balls_daemon) {
/* Test if this directory is not excuded !!! */
queue_put(source, dentry, op);
|