- 博客(82)
- 资源 (2)
- 收藏
- 关注
原创 struct nand_chip
include/linux/mtd/nand.hstruct nand_chip { void __iomem *IO_ADDR_R; void __iomem *IO_ADDR_W; uint8_t (*read_byte)(struct mtd_info *mtd); u16 (*read_word)(struct mtd_info *mtd
2013-08-22 12:44:37
1163
原创 struct mtd_info
struct mtd_info { u_char type; u_int32_t flags; uint64_t size; /* Total size of the MTD */ /* "Major" erase size for the device. Naïve users may take this * to be the o
2013-08-21 09:45:21
2637
原创 struct kobj_type
include/linux/kobject.hstruct kobj_type { void (*release)(struct kobject *kobj); const struct sysfs_ops *sysfs_ops; struct attribute **default_attrs; const struct kobj_ns_type_
2013-07-29 09:43:40
903
原创 struct kset_uevent_ops
include/linux/kobject.hstruct kset_uevent_ops { int (* const filter)(struct kset *kset, struct kobject *kobj); const char *(* const name)(struct kset *kset, struct kobject *kobj); i
2013-07-29 09:08:18
1105
原创 struct kset
include/linux/kobject.h/** * struct kset - a set of kobjects of a specific type, belonging to a specific subsystem. * * A kset defines a group of kobjects. They can be individually * diff
2013-07-29 09:06:01
849
原创 int device_register(struct device *dev)
drivers/base/core.c/** * device_register - register a device with the system. * @dev: pointer to the device structure * * This happens in two clean steps - initialize the device * and ad
2013-07-26 13:13:03
797
原创 struct bus_type
include/linux/device.h/** * struct bus_type - The bus type of the device * * @name: The name of the bus. * @bus_attrs: Default attributes of the bus. * @dev_attrs: Default attri
2013-07-26 10:39:25
682
原创 int uart_register_driver(struct uart_driver *drv)
drivers/tty/serial/serial_core.c/** * uart_register_driver - register a driver with the uart core layer * @drv: low level driver structure * * Register a uart driver with the core
2013-07-25 13:50:30
1022
原创 struct resource
include/linux/ioport.h/* * Resources are tree-like, allowing * nesting etc.. */struct resource { resource_size_t start; resource_size_t end; const char *name; unsigned
2013-07-24 12:36:05
824
原创 struct device_driver {
include/linux/device.h/** * struct device_driver - The basic device driver structure * @name: Name of the device driver. * @bus: The bus which the device of this driver belongs to. *
2013-07-24 10:25:37
863
原创 struct uart_port
include/linux/serial_core.hstruct uart_port { spinlock_t lock; /* port lock */ unsigned long iobase; /* in/out[bwl] */ unsigned char __iomem *
2013-07-23 14:35:34
2011
原创 struct s3c24xx_uart_port {
struct s3c24xx_uart_port { unsigned char rx_claimed; unsigned char tx_claimed; unsigned int pm_level; unsigned long baudclk_rate;
2013-07-23 13:54:04
796
原创 arch/arm/plat-samsung/dev-uart.c
/* linux/arch/arm/plat-samsung/dev-uart.c * originally from arch/arm/plat-s3c24xx/devs.c *x * Copyright (c) 2004 Simtec Electronics * Ben Dooks * * Base S3C24XX platform device defi
2013-07-23 13:46:30
993
原创 struct s3c24xx_uart_info
/drivers/tty/serial/samsung.hstruct s3c24xx_uart_info { char *name; unsigned int type; unsigned int fifosize; unsigned long rx_fifomask; un
2013-07-23 13:24:43
692
原创 struct platform_device
include/linux/platform_device.hstruct platform_device { const char * name; int id; struct device dev; u32 num_resources; struct resource * resource;
2013-07-23 13:14:14
890
原创 struct platform_driver
include/linux/platform_device.hstruct platform_driver { int (*probe)(struct platform_device *); int (*remove)(struct platform_device *); void (*shutdown)(struct platform_device *);
2013-07-23 13:13:37
865
原创 int s3c24xx_serial_probe(struct platform_device *dev,
drivers/tty/serial/samsung.cint s3c24xx_serial_probe(struct platform_device *dev, struct s3c24xx_uart_info *info){ struct s3c24xx_uart_port *ourport; int ret; dbg(
2013-07-23 10:38:23
831
原创 int driver_register(struct device_driver *drv)
drivers/base/driver.c/** * driver_register - register driver with bus * @drv: driver to register * * We pass off most of the work to the bus_add_driver() call, * since most of the things
2013-07-23 09:29:12
907
原创 int platform_driver_register(struct platform_driver *drv)
drivers/base/platform.c/** * platform_driver_register - register a driver for platform-level devices * @drv: platform driver structure */int platform_driver_register(struct platform_driver
2013-07-23 09:05:26
1060
原创 static inline int register_chrdev(unsigned int major, const char *name, const stru
include/linux/fs.hstatic inline int register_chrdev(unsigned int major, const char *name, const struct file_operations *fops){ return __register_chrdev(major, 0, 256, nam
2013-07-22 19:01:58
1018
原创 struct device
include/linux/device.h/** * struct device - The basic device structure * @parent: The device's "parent" device, the device to which it is attached. * In most cases, a parent devic
2013-07-22 16:35:16
670
原创 struct inode
include/linux/fs.hstruct inode { /* RCU path lookup touches following: */ umode_t i_mode; uid_t i_uid; gid_t i_gid; const struct inode_ope
2013-07-22 15:28:09
699
原创 struct file
include/linux/fs.hstruct file { /* * fu_list becomes invalid after file_free is called and queued via * fu_rcuhead for RCU freeing */ union { struct list_head
2013-07-22 15:25:58
915
原创 void kobject_init(struct kobject *kobj, struct kobj_type *ktype)
lib/kobject.c/** * kobject_init - initialize a kobject structure * @kobj: pointer to the kobject to initialize * @ktype: pointer to the ktype for this kobject. * * This function will pro
2013-07-22 14:12:36
1014
原创 struct cdev
include/linux/cdev.hstruct cdev { struct kobject kobj; struct module *owner; const struct file_operations *ops; struct list_head list; dev_t dev; unsigned int count;
2013-07-22 13:57:29
702
原创 int __register_chrdev(unsigned int major, unsigned int baseminor,unsigned int count,
/** * __register_chrdev() - create and register a cdev occupying a range of minors * @major: major device number or 0 for dynamic allocation * @baseminor: first of the requested range of minor n
2013-07-22 12:33:05
867
原创 include/linux/list.h
#ifndef _LINUX_LIST_H#define _LINUX_LIST_H#include #include #include #include /* * Simple doubly linked list implementation. * * Some of the internal functions ("__xxx") are usef
2013-07-22 09:33:04
1272
原创 static inline int register_chrdev(unsigned int major, const char *name, const struct file_operations
include/linux/fs.hstatic inline int register_chrdev(unsigned int major, const char *name, const struct file_operations *fops){ return __register_chrdev(major, 0, 256, nam
2013-07-22 08:48:32
1062
原创 struct device *device_create(struct class *class, struct device *parent, dev_t devt, void *drvdata,
/** * device_create - creates a device and registers it with sysfs * @class: pointer to the struct class that this device should be registered to * @parent: pointer to the parent struct device o
2013-07-22 03:33:54
1421
原创 struct miscdevice
include/linux/miscdevice.hstruct miscdevice { int minor; const char *name; const struct file_operations *fops; struct list_head list; struct device *parent; struct d
2013-07-22 03:20:18
921
原创 struct kobj_map
drivers/base/map.cstruct kobj_map { struct probe { struct probe *next; dev_t dev; unsigned long range; struct module *owner; kobj_probe_t *get;
2013-07-20 15:33:06
839
原创 struct kobj_map *kobj_map_init(kobj_probe_t *base_probe, struct mutex *lock)
drivers/base/map.cstruct kobj_map *kobj_map_init(kobj_probe_t *base_probe, struct mutex *lock){ struct kobj_map *p = kmalloc(sizeof(struct kobj_map), GFP_KERNEL); struct probe *base =
2013-07-20 14:58:00
902
原创 int kobj_map(struct kobj_map *domain, dev_t dev, unsigned long range, struct module *module, k
include/base/map.cint kobj_map(struct kobj_map *domain, dev_t dev, unsigned long range, struct module *module, kobj_probe_t *probe, int (*lock)(dev_t, void *), void *data){
2013-07-20 14:00:45
897
原创 int cdev_add(struct cdev *p, dev_t dev, unsigned count)
fs/char_dev.cint cdev_add(struct cdev *p, dev_t dev, unsigned count){ p->dev = dev; p->count = count; return kobj_map(cdev_map, dev, count, NULL, exact_match, exact_lock, p);}
2013-07-20 13:49:47
839
原创 struct kobject
include/linux/kobject.hstruct kobject { const char *name; struct list_head entry; struct kobject *parent; struct kset *kset; struct kobj_type *k
2013-07-20 13:41:41
672
原创 void cdev_init(struct cdev *cdev, const struct file_operations *fops)
fs/char_dev.c/** * cdev_init() - initialize a cdev structure * @cdev: the structure to initialize * @fops: the file_operations for this device * * Initializes @cdev, remembering @fops, m
2013-07-20 13:20:24
865
原创 int tty_register_driver(struct tty_driver *driver)
drivers/tty/tty_io.c/* * Called by a tty driver to register itself. */int tty_register_driver(struct tty_driver *driver){ int error; int i; dev_t dev; void **p = NULL;
2013-07-20 13:10:42
821
原创 struct tty_port
include/linux/tty.hstruct tty_port { struct tty_struct *tty; /* Back pointer */ const struct tty_port_operations *ops; /* Port operations */ spinlock_t lock;
2013-07-20 12:48:36
1015
原创 struct tty_driver
include/linux/tty_driver.hstruct tty_driver { int magic; /* magic number for this structure */ struct kref kref; /* Reference management */ struct cdev cdev; struc
2013-07-18 12:17:33
850
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人