diff options
author | 2006-06-27 02:53:54 -0700 | |
---|---|---|
committer | 2006-06-27 17:32:38 -0700 | |
commit | a7807a32bbb027ab9955b96734fdc7f1e6497a9f (patch) | |
tree | 8ed62e305638e1b853f1c80b5bb7ed818418765c /include/linux/poison.h | |
parent | [PATCH] update two drivers for poison.h (diff) | |
download | linux-a7807a32bbb027ab9955b96734fdc7f1e6497a9f.tar.gz linux-a7807a32bbb027ab9955b96734fdc7f1e6497a9f.tar.bz2 linux-a7807a32bbb027ab9955b96734fdc7f1e6497a9f.zip |
[PATCH] poison: add & use more constants
Add more poison values to include/linux/poison.h. It's not clear to me
whether some others should be added or not, so I haven't added any of
these:
./include/linux/libata.h:#define ATA_TAG_POISON 0xfafbfcfdU
./arch/ppc/8260_io/fcc_enet.c:1918: memset((char *)(&(immap->im_dprambase[(mem_addr+64)])), 0x88, 32);
./drivers/usb/mon/mon_text.c:429: memset(mem, 0xe5, sizeof(struct mon_event_text));
./drivers/char/ftape/lowlevel/ftape-ctl.c:738: memset(ft_buffer[i]->address, 0xAA, FT_BUFF_SIZE);
./drivers/block/sx8.c:/* 0xf is just arbitrary, non-zero noise; this is sorta like poisoning */
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/poison.h')
-rw-r--r-- | include/linux/poison.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/poison.h b/include/linux/poison.h index 4109f37b7b66..a5347c02432e 100644 --- a/include/linux/poison.h +++ b/include/linux/poison.h @@ -45,6 +45,13 @@ /********** drivers/atm/ **********/ #define ATM_POISON_FREE 0x12 +/********** kernel/mutexes **********/ +#define MUTEX_DEBUG_INIT 0x11 +#define MUTEX_DEBUG_FREE 0x22 + +/********** security/ **********/ +#define KEY_DESTROY 0xbd + /********** sound/oss/ **********/ #define OSS_POISON_FREE 0xAB |