Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

put_device(9) [suse man page]

PUT_DEVICE(9)						   Device drivers infrastructure					     PUT_DEVICE(9)

NAME
put_device - decrement reference count. SYNOPSIS
void put_device(struct device * dev); ARGUMENTS
dev device in question. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 PUT_DEVICE(9)

Check Out this Related Man Page

DEVICE_SCHEDULE_CALL(9) 				   Device drivers infrastructure				   DEVICE_SCHEDULE_CALL(9)

NAME
device_schedule_callback_owner - helper to schedule a callback for a device SYNOPSIS
int device_schedule_callback_owner(struct device * dev, void (*func) (struct device *), struct module * owner); ARGUMENTS
dev device. func callback function to invoke later. owner module owning the callback routine DESCRIPTION
Attribute methods must not unregister themselves or their parent device (which would amount to the same thing). Attempts to do so will deadlock, since unregistration is mutually exclusive with driver callbacks. Instead methods can call this routine, which will attempt to allocate and schedule a workqueue request to call back func with dev as its argument in the workqueue's process context. dev will be pinned until func returns. This routine is usually called via the inline device_schedule_callback, which automatically sets owner to THIS_MODULE. Returns 0 if the request was submitted, -ENOMEM if storage could not be allocated, -ENODEV if a reference to owner isn't available. NOTE
This routine won't work if CONFIG_SYSFS isn't set! It uses an underlying sysfs routine (since it is intended for use by attribute methods), and if sysfs isn't available you'll get nothing but -ENOSYS. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 DEVICE_SCHEDULE_CALL(9)
Man Page

14 More Discussions You Might Find Interesting

1. Solaris

getting to the ok prompt from putty

Hello, I am connected to my sunblade 1500 using putty. I am trying to do an installation from putty. Which command do I give to get to the ok prompt? Thanks for your help. (10 Replies)
Discussion started by: cjashu
10 Replies

2. UNIX for Dummies Questions & Answers

Single UNIX command to display users and to count them

Hello everyone, I am new to Unix and I am stuck with a problem. I need only a single command to display the output of who and then add the total number of users and display at the bottom of that output. Example-: (Expected output) sreyan@debian:~$ <command> sreyan tty7 ... (7 Replies)
Discussion started by: sreyan32
7 Replies

3. UNIX for Dummies Questions & Answers

Problem with ls

Hi, I am using the following command to produce a colorised output from Terminal within OSX. ls -lahFG This works fine. However when I try to sort the output so that it shows the directories first the colour disappears. ls -lahFG | sort -rk1 Any ideas why this is happening? ... (3 Replies)
Discussion started by: vnayak
3 Replies

4. UNIX for Dummies Questions & Answers

^H characters appear when opening text file using vi - RHEL

Version Info: $ cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.8 (Tikanga) $ $ uname -a Linux stryker138 2.6.18-308.13.1.el5 #1 SMP Thu Jul 26 05:45:09 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux I redirected manpage of ksh command's output to a text file as shown... (6 Replies)
Discussion started by: kraljic
6 Replies

5. Shell Programming and Scripting

Script (ksh) to get data in every 30 mins interval for the given date

Hello, Since I m new to shell, I had a hard time to sought out this problem. I have a log file of a utility which tells that batch files are successful with timestamp. Given below is a part of the log file. 2013/03/07 00:13:50 Apache/1.3.29 (Unix) configured -- resuming normal operations... (12 Replies)
Discussion started by: rpm120
12 Replies

6. Solaris

Sun V445 hangs before {0} ok prompt

I am having a problem when booting my Sun V445 machine with Solaris 10 installed on it. Machine hangs at boot at following step : 0>Copyright 2007 Sun Microsystems, Inc. All rights reserved 0>OBP->POST Call with %o0=00000800.01014000. 0>Diag level set to MAX. 0>Verbosity level set to... (21 Replies)
Discussion started by: usmanijaz101
21 Replies

7. Shell Programming and Scripting

Using input from one file to define scope of other file in Linux

Hi, I have two files A and B and would like to use A as a filter. Like this: File A.txt: Contains a list of IP addresses, each one occurring only once and in order: 10.0.0.1 10.0.0.2 10.0.0.4 10.0.0.8 File B.txt: Contains the same IP addresses with a corresponding ping time each (in... (16 Replies)
Discussion started by: Zooma
16 Replies

8. AIX

Tar - pre-checking before making the Tar file

Coming from this thread, just wondering if there is an option to check if the Tar of the files/directory will be without any file-errors without actually making the tar. Scenario: Let's say you have a directory of 20GB, but you don't have the space to make Tar file at the moment, and you want... (14 Replies)
Discussion started by: filosophizer
14 Replies

9. UNIX for Advanced & Expert Users

Detecting unused variables...

Hi guys... The first active code line in AudioScope.sh is set -u . This causes a complete exit if a variable is used/found but has not been allocated at the start of the program. However, apart from writing code to do the task, is there a switch to to check which variables have been... (17 Replies)
Discussion started by: wisecracker
17 Replies

10. Linux

Need software details that can convert PDF to PS

we have been trying to convert PDF into PS for one of the projects. Our PDF files are little big and we use PDFTOPS which takes long time to convert it and it's a freeware. Is there any licensed version of such kind of tool? Responses are really appreciated. (2 Replies)
Discussion started by: venureddy
2 Replies

11. OS X (Apple)

AudioScope Project.

AudioScope Project. (Apologies for any typos.) For the few following...... AudioScope.sh... Now at Version 0.60.00. Well this baby has come a long way since its inception in January 2013. It is now at Version 0.60.00. It is MUCH more Apple centric now with a new OSX Sierra minimum _silent_... (7 Replies)
Discussion started by: wisecracker
7 Replies

12. UNIX for Beginners Questions & Answers

Confused about redirecting stderr

I know that mmmmm 2> error.txt will send the error message to the specified file instead of the screen. However, I have seen >&2 in some scripts, and I can't get it to do anything. A source said it sends stdout and stderr to a file. What file? Ubuntu 18.04.2; Xfce 4.12.3;... (11 Replies)
Discussion started by: Xubuntu56
11 Replies

13. Hardware

How to *completely* disable laptop touchpad, without disabling trackpoint?

I run Devuan ASCII on my T400 laptop. I only use the trackpoint ("nipple mouse"). To me, the touchpad is just a nuisance. I've discovered (by monitoring output of sudo cat /dev/input/event5) that the touchpad generates random input while the lid is closed. This causes applications that should... (5 Replies)
Discussion started by: DevuanFan
5 Replies

14. Solaris

"synchronisation lost" errors for Solaris NTP server

Hi, This is Solaris 9, which is service as NTP server for many unix clients. At backend, it it synching time with three GPS clocks. From past few days, I am noticing time reset to 1 second. Is this a problem ? I was assuming that if it is a network issue or GPS clock connectivity issue, it... (14 Replies)
Discussion started by: solaris_1977
14 Replies