kernel-ark/include/linux
Christoph Hellwig a885c8c431 [PATCH] Add block_device_operations.getgeo block device method
HDIO_GETGEO is implemented in most block drivers, and all of them have to
duplicate the code to copy the structure to userspace, as well as getting
the start sector.  This patch moves that to common code [1] and adds a
->getgeo method to fill out the raw kernel hd_geometry structure.  For many
drivers this means ->ioctl can go away now.

[1] the s390 block drivers are odd in this respect.  xpram sets ->start
    to 4 always which seems more than odd, and the dasd driver shifts
    the start offset around, probably because of it's non-standard
    sector size.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Jens Axboe <axboe@suse.de>
Cc: <mike.miller@hp.com>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Neil Brown <neilb@cse.unsw.edu.au>
Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-08 20:13:54 -08:00
..
amba [ARM] Move AMBA include files to include/linux/amba/ 2006-01-07 13:52:45 +00:00
byteorder
dvb
hdlc
isdn
lockd RPC: Clean up RPC task structure 2006-01-06 14:58:39 -05:00
mmc
mtd
netfilter [NETFILTER]: ctnetlink: Fix dumping of helper name 2006-01-05 12:20:02 -08:00
netfilter_arp
netfilter_bridge
netfilter_ipv4 [NETFILTER]: Add ipt_policy/ip6t_policy matches 2006-01-07 12:57:38 -08:00
netfilter_ipv6 [NETFILTER]: Add ipt_policy/ip6t_policy matches 2006-01-07 12:57:38 -08:00
nfsd [PATCH] knfsd: check error status from vfs_getattr and i_op->fsync 2006-01-06 08:33:59 -08:00
raid [PATCH] md: allow sync-speed to be controlled per-device 2006-01-06 08:34:10 -08:00
sunrpc SUNRPC: Update the spkm3 code to use the make_checksum interface 2006-01-06 14:58:59 -05:00
tc_act
tc_ematch
8250_pci.h
a.out.h
ac97_codec.h
acct.h
acpi.h
adb.h
adfs_fs_i.h
adfs_fs_sb.h
adfs_fs.h
affs_fs.h
affs_hardblocks.h
agp_backend.h
agpgart.h
aio_abi.h
aio.h
amifd.h
amifdreg.h
amigaffs.h
apm_bios.h
arcdevice.h
arcfb.h
ata.h Merge branch 'post-2.6.15' of git://brick.kernel.dk/data/git/linux-2.6-block 2006-01-06 09:01:25 -08:00
atalk.h
atm_eni.h
atm_he.h
atm_idt77105.h
atm_nicstar.h
atm_suni.h
atm_tcp.h
atm_zatm.h
atm.h
atmapi.h
atmarp.h
atmbr2684.h
atmclip.h
atmdev.h
atmioc.h
atmlec.h
atmmpc.h
atmppp.h
atmsap.h
atmsvc.h
attribute_container.h
audit.h
auto_fs4.h
auto_fs.h
auxvec.h
awe_voice.h
ax25.h
b1lli.h
b1pcmcia.h
backing-dev.h
backlight.h
baycom.h
bcd.h
bfs_fs.h
binfmts.h
bio.h
bit_spinlock.h
bitmap.h
bitops.h
blkdev.h [BLOCK] Correct blk_execute_rq_nowait() prototype 2006-01-06 10:00:50 +01:00
blkpg.h
blockgroup_lock.h
bootmem.h [PATCH] Cleanup bootmem allocator and fix alloc_bootmem_low 2006-01-06 08:33:26 -08:00
bpqether.h
buffer_head.h [PATCH] fat: support a truncate() for expanding size (generic_cont_expand) 2006-01-08 20:13:47 -08:00
cache.h [PATCH] Change maxaligned_in_smp alignemnt macros to internodealigned_in_smp macros 2006-01-08 20:13:38 -08:00
capability.h
capi.h
cciss_ioctl.h
cd1400.h
cdev.h
cdk.h
cdrom.h
chio.h
circ_buf.h
clk.h [ARM] Move asm/hardware/clock.h to linux/clk.h 2006-01-07 16:15:52 +00:00
cm4000_cs.h
cn_proc.h
cobalt-nvram.h
coda_cache.h
coda_fs_i.h
coda_linux.h
coda_proc.h
coda_psdev.h
coda.h
coff.h
com20020.h
compat_ioctl.h
compat.h
compiler-gcc2.h
compiler-gcc3.h
compiler-gcc4.h
compiler-gcc.h
compiler-intel.h
compiler.h
completion.h
comstats.h
concap.h
config.h
configfs.h
connector.h
console_struct.h
console.h
consolemap.h
cpu.h
cpufreq.h
cpumask.h
cpuset.h [PATCH] cpuset: remove test for null cpuset from alloc code path 2006-01-08 20:13:44 -08:00
cramfs_fs_sb.h
cramfs_fs.h
crash_dump.h
crc16.h
crc32.h
crc32c.h
crc-ccitt.h
crypto.h
cryptohash.h
ctype.h
cuda.h
cyclades.h
cyclomx.h
cycx_cfm.h
cycx_drv.h
cycx_x25.h
dcache.h
dccp.h
dcookies.h
debugfs.h
delay.h
devfs_fs_kernel.h
devfs_fs.h
device-mapper.h
device.h
devpts_fs.h
dio.h
dirent.h
divert.h
dm9000.h
dm-ioctl.h [PATCH] device-mapper ioctl: add skip lock_fs flag 2006-01-06 08:34:01 -08:00
dma-mapping.h
dmapool.h
dmi.h
dn.h
dnotify.h
dqblk_v1.h
dqblk_v2.h
dqblk_xfs.h
ds1286.h
ds1742rtc.h
ds17287rtc.h
dtlk.h
edd.h
efi.h
efs_dir.h
efs_fs_i.h
efs_fs_sb.h
efs_fs.h
efs_vh.h
eisa.h
elevator.h [BLOCK] reimplement handling of barrier request 2006-01-06 09:51:03 +01:00
elf-fdpic.h
elf.h [PATCH] ELF: symbol table type additions 2006-01-08 20:13:49 -08:00
elfcore.h
err.h
errno.h
errqueue.h
etherdevice.h
ethtool.h
eventpoll.h
ext2_fs_sb.h
ext2_fs.h
ext3_fs_i.h
ext3_fs_sb.h
ext3_fs.h
ext3_jbd.h
fadvise.h
fb.h
fcdevice.h
fcntl.h
fd1772.h
fd.h
fddidevice.h
fdreg.h
file.h
filter.h [NET]: Change sk_run_filter()'s return type in net/core/filter.c 2006-01-06 13:08:20 -08:00
firmware.h
flat.h
font.h
fs_enet_pd.h
fs_struct.h
fs.h [PATCH] Add block_device_operations.getgeo block device method 2006-01-08 20:13:54 -08:00
fsl_devices.h
fsnotify.h
ftape-header-segment.h
ftape-vendors.h
ftape.h
fuse.h [PATCH] fuse: make maximum write data configurable 2006-01-06 08:33:56 -08:00
futex.h
gameport.h
gen_stats.h
genalloc.h
generic_serial.h
genetlink.h
genhd.h
gfp.h
hardirq.h
harrier_defs.h
hash.h
hayesesp.h
hdlc.h
hdlcdrv.h
hdpu_features.h
hdreg.h
hdsmart.h
hiddev.h
highmem.h
highuid.h
hil_mlc.h
hil.h
hippidevice.h
hp_sdc.h
hpet.h
hpfs_fs.h
hugetlb.h [PATCH] Add NUMA policy support for huge pages. 2006-01-06 08:33:23 -08:00
hwmon-sysfs.h
hwmon-vid.h [PATCH] hwmon: add VRM/VID support for some VIA CPUs 2006-01-05 22:16:26 -08:00
hwmon.h
hysdn_if.h
i2c-algo-bit.h
i2c-algo-ite.h
i2c-algo-pca.h
i2c-algo-pcf.h
i2c-algo-sgi.h
i2c-algo-sibyte.h
i2c-dev.h
i2c-id.h [PATCH] i2c: driver ID list cleanups 2006-01-05 22:16:26 -08:00
i2c-isa.h
i2c-pxa.h
i2c.h [PATCH] I2C: Make i2c_add_driver automatically set the proper module owner 2006-01-05 22:16:24 -08:00
i2o-dev.h
i2o.h [PATCH] I2O: Bugfixes 2006-01-06 08:33:54 -08:00
i8k.h
ibmtr.h
icmp.h
icmpv6.h
ide.h [PATCH] Change maxaligned_in_smp alignemnt macros to internodealigned_in_smp macros 2006-01-08 20:13:38 -08:00
idr.h
if_arcnet.h
if_arp.h
if_bonding.h
if_bridge.h
if_cablemodem.h
if_ec.h
if_eql.h
if_ether.h
if_fc.h
if_fddi.h
if_frad.h
if_hippi.h
if_infiniband.h
if_ltalk.h
if_packet.h
if_plip.h
if_ppp.h
if_pppox.h
if_shaper.h
if_slip.h
if_strip.h
if_tr.h
if_tun.h
if_tunnel.h
if_vlan.h
if_wanpipe_common.h
if_wanpipe.h
if.h
igmp.h
in6.h
in_route.h
in.h
inet_diag.h
inet.h [NET]: Endian-annotate in_aton() 2006-01-06 13:24:54 -08:00
inetdevice.h
init_task.h
init.h
initrd.h
inotify.h
input.h
interrupt.h
ioc4.h
ioctl32.h
ioctl.h
ioport.h
ioprio.h
ip6_tunnel.h
ip_mp_alg.h
ip.h [NET]: Endian-annotate struct iphdr 2006-01-06 13:24:29 -08:00
ipc.h
ipmi_msgdefs.h
ipmi_smi.h
ipmi.h
ipsec.h
ipv6_route.h
ipv6.h [NETFILTER]: Fix xfrm lookup in ip_route_me_harder/ip6_route_me_harder 2006-01-07 12:57:33 -08:00
ipx.h
irda.h
irq_cpustat.h
irq.h [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
isapnp.h
isdn_divertif.h
isdn_ppp.h
isdn.h
isdnif.h
isicom.h
iso_fs.h
istallion.h
ite_gpio.h
ixjuser.h
jbd.h [PATCH] jbd: split checkpoint lists 2006-01-06 08:33:59 -08:00
jffs2_fs_i.h
jffs2_fs_sb.h
jffs2.h
jffs.h
jhash.h
jiffies.h
journal-head.h
joystick.h
kallsyms.h
kbd_diacr.h
kbd_kern.h
kd.h
kdev_t.h
kernel_stat.h
kernel.h
kernelcapi.h
kexec.h
key-ui.h
key.h [PATCH] keys: Permit running process to instantiate keys 2006-01-08 20:13:53 -08:00
keyboard.h
keyctl.h [PATCH] keys: Permit running process to instantiate keys 2006-01-08 20:13:53 -08:00
kfifo.h
klist.h
kmalloc_sizes.h
kmod.h
kobj_map.h
kobject.h
kprobes.h
kref.h
kthread.h
lapb.h
lcd.h
libata.h Merge branch 'post-2.6.15' of git://brick.kernel.dk/data/git/linux-2.6-block 2006-01-06 09:01:25 -08:00
libps2.h
limits.h
linkage.h
linux_logo.h
list.h
llc.h
loop.h
lp.h
major.h
matroxfb.h
mbcache.h
mc6821.h
mc146818rtc.h
mca-legacy.h
mca.h
memory_hotplug.h
memory.h [PATCH] Fix compilation with CONFIG_MEMORY_HOTPLUG=y and gcc41. 2006-01-08 20:12:39 -08:00
mempolicy.h [PATCH] cpuset: rebind vma mempolicies fix 2006-01-08 20:13:44 -08:00
mempool.h
meye.h
mii.h
minix_fs.h
miscdevice.h
mm_inline.h [PATCH] Swap Migration V5: LRU operations 2006-01-08 20:12:41 -08:00
mm.h [PATCH] set_page_count() macro safety 2006-01-08 20:12:43 -08:00
mman.h
mmtimer.h
mmzone.h [PATCH] Change maxaligned_in_smp alignemnt macros to internodealigned_in_smp macros 2006-01-08 20:13:38 -08:00
mod_devicetable.h
module.h
moduleloader.h
moduleparam.h kbuild: un-stringnify KBUILD_MODNAME 2006-01-06 21:17:50 +01:00
mount.h
mpage.h
mqueue.h
mroute.h
msdos_fs.h [PATCH] fat: support ->direct_IO() 2006-01-08 20:13:46 -08:00
msg.h
mtio.h
mv643xx.h
n_r3964.h
namei.h
namespace.h
nbd.h [PATCH] nbd: fix TX/RX race condition 2006-01-06 08:33:20 -08:00
ncp_fs_i.h
ncp_fs_sb.h
ncp_fs.h
ncp_mount.h
ncp_no.h
ncp.h
net.h
netdevice.h
netfilter_arp.h
netfilter_bridge.h
netfilter_decnet.h
netfilter_ipv4.h
netfilter_ipv6.h
netfilter_logging.h
netfilter.h [NETFILTER]: Add dummy nf_hook{_thresh}() when NETFILTER is disabled. 2006-01-07 12:57:42 -08:00
netlink.h
netpoll.h
netrom.h
nfs2.h
nfs3.h
nfs4_acl.h
nfs4_mount.h
nfs4.h
nfs_fs_i.h
nfs_fs_sb.h
nfs_fs.h NFSv4: Allow user to set the port used by the NFSv4 callback channel 2006-01-06 14:58:52 -05:00
nfs_idmap.h NFSv4: Allow entries in the idmap cache to expire 2006-01-06 14:58:58 -05:00
nfs_mount.h
nfs_page.h NFS: simplify inlined bit ops in nfs_page.h 2006-01-06 14:58:48 -05:00
nfs_xdr.h NFSv4: Ensure DELEGRETURN returns attributes 2006-01-06 14:58:51 -05:00
nfs.h
nfsacl.h
nfsd_idmap.h
nls.h
nmi.h
node.h
nodemask.h
notifier.h
nubus.h
numa.h
nvram.h
openprom_fs.h
oprofile.h
page-flags.h [PATCH] mm: page_state opt docs 2006-01-06 08:33:29 -08:00
pagemap.h
pagevec.h [PATCH] Permit multiple inclusion of linux/pagevec.h 2006-01-08 20:13:52 -08:00
param.h
parport_pc.h [PATCH] include/linux/parport_pc.h: "extern inline" -> "static inline" 2006-01-06 08:33:58 -08:00
parport.h [PATCH] parport: phase fixes 2006-01-06 08:33:56 -08:00
parser.h
patchkey.h
pci_ids.h Merge master.kernel.org:/home/rmk/linux-2.6-serial 2006-01-07 10:44:22 -08:00
pci_regs.h
pci-acpi.h
pci.h
pcieport_if.h
percpu_counter.h
percpu.h [PATCH] slab: remove unused align parameter from alloc_percpu 2006-01-08 20:12:39 -08:00
personality.h
pfkeyv2.h
pg.h
phonedev.h
phy.h
pid.h
pipe_fs_i.h
pkt_cls.h
pkt_sched.h
pktcdvd.h
platform_device.h [PATCH] Driver Core: Add platform_device_del() 2006-01-04 16:18:09 -08:00
platform.h
pm_legacy.h
pm.h
pmu.h
pnp.h
pnpbios.h
poll.h
posix_acl_xattr.h
posix_acl.h
posix_types.h
posix-timers.h
ppdev.h
ppp_channel.h
ppp_defs.h
ppp-comp.h
prctl.h
preempt.h
prefetch.h
prio_tree.h
proc_fs.h
profile.h
ps2esdi.h
ptrace.h [PATCH] use ptrace_get_task_struct in various places 2006-01-08 20:13:51 -08:00
qic117.h
qnx4_fs.h
qnxtypes.h
quota.h
quotaio_v1.h
quotaio_v2.h
quotaops.h
radeonfb.h
radix-tree.h [PATCH] rcu file: use atomic primitives 2006-01-08 20:13:48 -08:00
raid_class.h
ramfs.h [PATCH] NOMMU: Provide shared-writable mmap support on ramfs 2006-01-06 08:33:32 -08:00
random.h
raw.h
rbtree.h
rcupdate.h [PATCH] Change maxaligned_in_smp alignemnt macros to internodealigned_in_smp macros 2006-01-08 20:13:38 -08:00
reboot_fixups.h
reboot.h
reiserfs_acl.h
reiserfs_fs_i.h
reiserfs_fs_sb.h
reiserfs_fs.h
reiserfs_xattr.h
relayfs_fs.h [PATCH] relayfs: cleanup, change relayfs_file_* to relay_file_* 2006-01-08 20:13:51 -08:00
resource.h
rio_drv.h [PATCH] fix more missing includes 2006-01-08 20:13:45 -08:00
rio_ids.h
rio_regs.h
rio.h
rmap.h [PATCH] mm: rmap optimisation 2006-01-06 08:33:27 -08:00
romfs_fs.h
root_dev.h
rose.h
route.h
rslib.h
rtc.h [PATCH] move rtc_interrupt() prototype to rtc.h 2006-01-08 20:13:47 -08:00
rtnetlink.h
rwsem-spinlock.h
rwsem.h
sc26198.h
scatterlist.h
scc.h
sched.h [PATCH] keys: Permit running process to instantiate keys 2006-01-08 20:13:53 -08:00
sctp.h
scx200_gpio.h
scx200.h
sdla_asy.h
sdla_chdlc.h
sdla_fr.h
sdla_ppp.h
sdla_x25.h
sdla.h
sdladrv.h
sdlapci.h
sdlasfm.h
seccomp.h
securebits.h
security.h
selection.h
selinux_netlink.h
sem.h
seq_file.h
seqlock.h
serial167.h
serial_8250.h
serial_core.h
serial_ip3106.h
serial_reg.h
serial.h
serialP.h
serio.h
shm.h
shmem_fs.h
signal.h [PATCH] sigaction should clear all signals on SIG_IGN, not just < 32 2006-01-08 20:13:53 -08:00
skbuff.h [NETFILTER]: Fix xfrm lookup in ip_route_me_harder/ip6_route_me_harder 2006-01-07 12:57:33 -08:00
slab.h [PATCH] slob: introduce the SLOB allocator 2006-01-08 20:13:41 -08:00
smb_fs_i.h
smb_fs_sb.h
smb_fs.h
smb_mount.h
smb.h
smbno.h
smp_lock.h
smp.h
snmp.h
socket.h
sockios.h
som.h
sonet.h
sonypi.h
sort.h
sound.h
soundcard.h
spinlock_api_smp.h
spinlock_api_up.h
spinlock_types_up.h
spinlock_types.h
spinlock_up.h
spinlock.h
stallion.h
stat.h
statfs.h
stddef.h
stop_machine.h
string.h
stringify.h
superhyway.h
suspend.h [PATCH] swsusp: improve freeing of memory 2006-01-06 08:33:40 -08:00
swap.h [PATCH] SwapMig: Extend parameters for migrate_pages() 2006-01-08 20:12:42 -08:00
swapops.h
synclink.h [PATCH] new driver synclink_gt 2006-01-08 20:13:45 -08:00
sys.h
syscalls.h [PATCH] Swap Migration V5: sys_migrate_pages interface 2006-01-08 20:12:42 -08:00
sysctl.h [PATCH] Make high and batch sizes of per_cpu_pagelists configurable 2006-01-08 20:12:40 -08:00
sysdev.h
sysfs.h
sysrq.h
sysv_fs.h
tcp.h
telephony.h
termios.h
textsearch_fsm.h
textsearch.h
tfrc.h
thread_info.h
threads.h
ticable.h
time.h
timer.h
times.h
timex.h
tiocl.h
topology.h
toshiba.h
transport_class.h
trdevice.h
tty_driver.h
tty_flip.h
tty_ldisc.h
tty.h
types.h
udf_fs_i.h
udf_fs_sb.h
udf_fs.h
udp.h
ufs_fs_i.h
ufs_fs_sb.h
ufs_fs.h
uinput.h
uio.h
ultrasound.h
umem.h
un.h
unistd.h
usb_cdc.h
usb_ch9.h
usb_gadget.h
usb_gadgetfs.h
usb_input.h
usb_isp116x.h
usb_otg.h
usb_sl811.h
usb_usual.h
usb.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6 2006-01-04 18:44:12 -08:00
usbdevice_fs.h
user.h
utime.h
uts.h
utsname.h
vermagic.h
vfs.h
via.h
video_decoder.h
video_encoder.h
videodev2.h
videodev.h
videotext.h
vmalloc.h
vt_buffer.h
vt_kern.h
vt.h
wait.h
wanpipe.h
wanrouter.h
watchdog.h
wavefront.h
wireless.h
workqueue.h [PATCH] add schedule_on_each_cpu() 2006-01-08 20:12:40 -08:00
writeback.h [PATCH] export/change sync_page_range/_nolock() 2006-01-08 20:13:47 -08:00
x25.h
x1205.h
xattr.h
xfrm.h
yam.h
zconf.h
zftape.h
zlib.h
zorro_ids.h
zorro.h
zutil.h