Sponsored Content
Operating Systems AIX Display parent of certain device ? Post 302270901 by vilius on Tuesday 23rd of December 2008 07:39:13 AM
Old 12-23-2008
Display parent of certain device ?

Hi,

For example I can display clildren devices of "device_name" device by issuing:
lsdev -p device_name

How do I display parent device given certain child device ?

thanks
Vilius
 

5 More Discussions You Might Find Interesting

1. Programming

display in a child process a command called in the parent one

Hi , Could you tell me if I am right 1. Using fork(), pipe(), execlp() and dup() (see man 2 dup), write a C program executing the command ps -j in a parent process, displaying the result in a child process. #include <unistd.h> #include <errno.h> #include <stdio.h> #include <unistd.h>... (7 Replies)
Discussion started by: remid1985
7 Replies

2. Shell Programming and Scripting

full path of a file situated either in parent's dir. or parent's parent dir. so on...

hi experts(novice people can stay away as it is no child's game), i am developing a script which works like recycle bin of windows. the problem i am facing is that when ever i am trying to delete a file which is situated in parent directory or parent's parent directory i am unable to... (1 Reply)
Discussion started by: yahoo!
1 Replies

3. AIX

How to find all device on p570 when need do device firmware upgrade?

I need upgrade firmware for the device of p570, when I go to IBM FIX download website, there are a lot of device of p570 listed. How can I know what device I have on my p570? (4 Replies)
Discussion started by: rainbow_bean
4 Replies

4. Red Hat

Unable To Activate Ethernet Network Device in RHEL 5.5 - e100 device eth0 does not seem to be presen

Hi All, Could anyone please help to resolve the below problem. I installed RHEL5.5 in my desktop.But when i try to activate the ethernet connection then it gives me the error. I spent 2 days for the above and go through with several suggestion found by googling. But no luck. ... (0 Replies)
Discussion started by: Tanmoy
0 Replies

5. HP-UX

Failed to open tape device /dev/rmt/0mn:Device busy (errno = 16)

Hi, Unable to make tape backup, please help. /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -m tar -x inc_entire=vg00 * Creating local directories for configuration files and archive. ======= 04/25/16 16:28:08 IST Started /opt/ignite/bin/make_tape_recovery. (Mon... (4 Replies)
Discussion started by: anuragr
4 Replies
SYNCE_INFO_NEW(3)					       http://www.synce.org/						 SYNCE_INFO_NEW(3)

NAME
synce_info_new - allocate a new SynceInfo struct SYNOPSIS
#include <synce.h> SynceInfo *synce_info_new(const char *device_name); void synce_info_destroy(SynceInfo *info); const char *synce_info_get_name(SynceInfo *info); bool synce_info_get_os_version(SynceInfo *info, int os_major, int os_minor); int synce_info_get_build_number(SynceInfo *info); int synce_info_get_processor_type(SynceInfo *info); const char *synce_info_get_os_name(SynceInfo *info); const char *synce_info_get_model(SynceInfo *info); const char *synce_info_get_device_ip(SynceInfo *info); const char *synce_info_get_local_ip(SynceInfo *info); int synce_info_get_partner_id_1(SynceInfo *info); int synce_info_get_partner_id_2(SynceInfo *info); const char *synce_info_get_object_path(SynceInfo *info); pid_t synce_info_get_dccm_pid(SynceInfo *info); const char *synce_info_get_transport(SynceInfo *info); const char *synce_info_get_password(SynceInfo *info); int synce_info_get_key(SynceInfo *info); DESCRIPTION
The synce_info_new() function returns a pointer to a newly allocated and populated SynceInfo struct for a mobile device. If device_name is non-NULL, the returned struct relates to a mobile device with that name, or NULL if no device of that name is connected. If device_name is NULL, the exact behaviour depends on the flavour of dccm daemon in use. When using vdccm(1) or the deprecated dccm(1), the current active device is selected. This is usually the last device connected, specifically that described in the active_connection file which is by default in the ~/.synce/ directory. With odccm(1) the first device connected will be returned. With synce-hal this depends on the device(s) in question, and should be considered undefined. This struct should be freed with synce_info_destroy(3). typedef struct _SynceInfo { pid_t dccm_pid; /* process id of dccm daemon */ char* device_ip; /* device ip address */ char* local_iface_ip; /* local interface ip address */ char* password; /* device password */ int key; /* device pass key */ int os_major; /* device OS major version */ int os_minor; /* device OS minor version */ int build_number; /* OS build number */ int processor_type; /* device processor */ int partner_id_1; /* first sync partner id number */ int partner_id_2; /* second sync partner id number */ char* name; /* device name */ char* os_name; /* device OS name eg. PocketPC */ char* model; /* device hardware name */ char* transport; /* interface type */ char* object_path; /* path to device's information */ } SynceInfo; These fields must be accessed with the synce_info_get_ functions. The particular fields populated depend on the flavour of dccm daemon in use. The use of dccm(1) is deprecated. When using vdccm(1) all fields are populated except for local_iface_ip and os_minor. With odccm(1) and synce-hal, dccm_pid, password, key, build_number, partner_id_1 and partner_id_2 are not used. odccm(1) also does not populate local_iface_ip. RETURN VALUE
The synce_info_new() function returns a pointer to the allocated SynceInfo struct, or NULL if an error occured. SEE ALSO
synce(7), odccm(1), vdccm(1) The SynCE Project 2007-08-26 SYNCE_INFO_NEW(3)
All times are GMT -4. The time now is 04:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy