History

driver-core: prepare for 2.6.27 api change by adding dev_set_name

Create the dev_set_name function now so that various subsystems can start changing over to it before other changes in 2.6.27 will make it compulsory.

Stephen Rothwell committed 18 years ago

Commit 413c2391 parent 0a2ce2f2 files · +18 −0Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/device.h+3−0
@@ -385,6 +385,9 @@ static inline const char *dev_name(struct device *dev) · 384 unmodified lines
385 return dev->bus_id;385 return dev->bus_id;
386}386}
387 387
388extern int dev_set_name(struct device *dev, const char *name, ...)
389 __attribute__((format(printf, 2, 3)));
390
388#ifdef CONFIG_NUMA391#ifdef CONFIG_NUMA
389static inline int dev_to_node(struct device *dev)392static inline int dev_to_node(struct device *dev)
390{393{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t