Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
scan.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/acpi.h>
#include <linux/signal.h>
#include <linux/kthread.h>
#include <linux/dmi.h>
#include <linux/nls.h>
#include <acpi/acpi_drivers.h>
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  acpi_device_bus_id


#define STRUCT_TO_INT(s)   (*((int*)&s))
#define ACPI_BUS_CLASS   "system_bus"
#define ACPI_BUS_DEVICE_NAME   "System Bus"
#define ACPI_IS_ROOT_DEVICE(device)   (!(device)->parent)


 DEFINE_MUTEX (acpi_device_lock)
 LIST_HEAD (acpi_wakeup_device_list)
void acpi_bus_hot_remove_device (void *context)
int acpi_match_device_ids (struct acpi_device *device, const struct acpi_device_id *ids)
 EXPORT_SYMBOL (acpi_match_device_ids)
int acpi_bus_register_driver (struct acpi_driver *driver)
 EXPORT_SYMBOL (acpi_bus_register_driver)
void acpi_bus_unregister_driver (struct acpi_driver *driver)
 EXPORT_SYMBOL (acpi_bus_unregister_driver)
acpi_status acpi_bus_get_ejd (acpi_handle handle, acpi_handle *ejd)
 EXPORT_SYMBOL_GPL (acpi_bus_get_ejd)
void acpi_bus_data_handler (acpi_handle handle, void *context)
const characpi_device_hid (struct acpi_device *device)
 EXPORT_SYMBOL (acpi_device_hid)
int acpi_bus_add (struct acpi_device **child, struct acpi_device *parent, acpi_handle handle, int type)
 EXPORT_SYMBOL (acpi_bus_add)
int acpi_bus_start (struct acpi_device *device)
 EXPORT_SYMBOL (acpi_bus_start)
int acpi_bus_trim (struct acpi_device *start, int rmdevice)
 EXPORT_SYMBOL_GPL (acpi_bus_trim)
int __init acpi_scan_init (void)


struct acpi_device * acpi_root
struct bus_type acpi_bus_type

Macro Definition Documentation


Definition at line 19 of file scan.c.

#define ACPI_BUS_CLASS   "system_bus"

Definition at line 24 of file scan.c.

#define ACPI_BUS_DEVICE_NAME   "System Bus"

Definition at line 26 of file scan.c.


Definition at line 25 of file scan.c.

#define ACPI_IS_ROOT_DEVICE (   device)    (!(device)->parent)

Definition at line 28 of file scan.c.


Definition at line 1398 of file scan.c.

#define STRUCT_TO_INT (   s)    (*((int*)&s))

Definition at line 21 of file scan.c.

Function Documentation

int acpi_bus_add ( struct acpi_device **  child,
struct acpi_device *  parent,
acpi_handle  handle,
int  type 

Definition at line 1536 of file scan.c.

void acpi_bus_data_handler ( acpi_handle  handle,
void context 

Definition at line 763 of file scan.c.

acpi_status acpi_bus_get_ejd ( acpi_handle  handle,
acpi_handle ejd 

Definition at line 741 of file scan.c.

void acpi_bus_hot_remove_device ( void context)

acpi_bus_hot_remove_device: hot-remove a device and its children : struct acpi_eject_event pointer (freed in this func)

Hot-remove a device and its children. This function frees up the memory space passed by arg context, so that the caller may call this function asynchronously through acpi_os_hotplug_execute().

Definition at line 95 of file scan.c.

int acpi_bus_register_driver ( struct acpi_driver *  driver)

acpi_bus_register_driver - register a driver with the ACPI bus : driver being registered

Registers a driver with the ACPI bus. Searches the namespace for all devices that match the driver's criteria and binds. Returns zero for success or a negative error status for failure.

Definition at line 680 of file scan.c.

int acpi_bus_start ( struct acpi_device *  device)

Definition at line 1548 of file scan.c.

int acpi_bus_trim ( struct acpi_device *  start,
int  rmdevice 

Definition at line 1567 of file scan.c.

void acpi_bus_unregister_driver ( struct acpi_driver *  driver)

acpi_bus_unregister_driver - unregisters a driver with the APIC bus : driver to unregister

Unregisters a driver with the ACPI bus. Searches the namespace for all devices that match the driver's criteria and unbinds.

Definition at line 703 of file scan.c.

const char* acpi_device_hid ( struct acpi_device *  device)

Definition at line 1120 of file scan.c.

int acpi_match_device_ids ( struct acpi_device *  device,
const struct acpi_device_id ids 

Definition at line 343 of file scan.c.

ACPI_MODULE_NAME ( "scan"  )
int __init acpi_scan_init ( void  )

Definition at line 1653 of file scan.c.

DEFINE_MUTEX ( acpi_device_lock  )
EXPORT_SYMBOL ( acpi_match_device_ids  )
EXPORT_SYMBOL ( acpi_bus_register_driver  )
EXPORT_SYMBOL ( acpi_bus_unregister_driver  )
EXPORT_SYMBOL ( acpi_device_hid  )
EXPORT_SYMBOL ( acpi_bus_add  )
EXPORT_SYMBOL ( acpi_bus_start  )
EXPORT_SYMBOL_GPL ( acpi_bus_get_ejd  )
EXPORT_SYMBOL_GPL ( acpi_bus_trim  )
LIST_HEAD ( acpi_wakeup_device_list  )

Variable Documentation

struct bus_type acpi_bus_type
Initial value:
= {
.name = "acpi",
.match = acpi_bus_match,
.probe = acpi_device_probe,
.remove = acpi_device_remove,
.uevent = acpi_device_uevent,

Definition at line 512 of file scan.c.

struct acpi_device* acpi_root

Definition at line 51 of file bus.c.